pimutils / mates.rs

A very simple commandline addressbook
MIT License
63 stars 9 forks source link

Error when installing mates-git from AUR #25

Closed joshuap closed 6 years ago

joshuap commented 6 years ago

When installing from AUR, I am getting the following error:

==> Starting package()...
install: cannot stat 'target/release/build/mates-5*/out/mates.bash-completion': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

I fixed it by updating the PKGBUILD:

pkgname=mates-git
pkgver=r185
pkgrel=1
pkgdesc='A very simple commandline addressbook, with mutt integration and optional CardDAV synchronization.'
arch=('i686' 'x86_64')
url='https://github.com/untitaker/mates.rs'
license=('MIT')
makedepends=('git' 'rust' 'cargo')
depends=('gcc-libs')
source=("$pkgname::git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    echo -n "r"
    git rev-list --count HEAD
}

build() {
    cd "$srcdir/$pkgname"
    cargo build --release
}

package(){
    cd "$srcdir/$pkgname"
    install -Dm755 target/release/mates "$pkgdir/usr/bin/mates"

    install -Dm644 "target/release/build/mates-"*/out/mates.bash "$pkgdir/usr/share/bash-completion/completions/mates"
    install -Dm644 "target/release/build/mates-"*/out/mates.fish "$pkgdir/usr/share/fish/completions/mates.fish"
    install -Dm644 "target/release/build/mates-"*/out/_mates "$pkgdir/usr/share/zsh/site-functions/_mates"
}
untitaker commented 6 years ago

@gnuish can you take a look at this? Thanks!

untitaker commented 6 years ago

Ah, sorry, misread, should be fixed.