ericm / yup

Arch Linux AUR Helper with ncurses functionality and better searching and sorting
https://aur.archlinux.org/packages/yup
GNU General Public License v3.0
139 stars 7 forks source link

Improved PKGBUILD #15

Closed yochananmarqos closed 5 years ago

yochananmarqos commented 5 years ago

The prefix in the Makefile should be /usr, not /usr/local. I wasn't able to use make install as it lacks a DESTDIR variable.

pkgname=yup-git
pkgver=v0.1.8.beta.r0.g2899650
pkgrel=1
pkgdesc="Ncurses based AUR Helper with improved searching and sorting"
arch=('any')
url="https://github.com/ericm/yup"
license=('GPL3')
depends=('pacman>=5.1' 'git' 'ncurses' 'sudo')
makedepends=('go')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/ericm/yup.git')
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/${pkgname%-git}"
    make prefix=/usr
}

package() {
    cd "$srcdir/${pkgname%-git}"
    install -Dm755 "${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
    install -Dm755 completions/zsh \
        "$pkgdir/usr/share/zsh/site-functions/completions/_${pkgname%-git}"
}
Atemu commented 5 years ago

I pushed a slightly modified version of your PKGBUILD for the -git package, thanks!

Though you should probably report AUR related issues in the AUR instead in the future.