summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e6baae22d7e4f1bc668576014e9c8889f5376c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pkgname=yup-git
basepkgname=yup
pkgver=v0.1.8.beta.r1.gb764aa8
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=("$basepkgname")
conflicts=("$basepkgname")
source=('git+https://github.com/ericm/yup.git')
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/$basepkgname"
	make prefix=/usr
}

package() {
	cd "$srcdir/$basepkgname"
	install -Dm755 "$basepkgname" "$pkgdir/usr/bin/$basepkgname"
	install -Dm755 completions/zsh \
		"$pkgdir/usr/share/zsh/site-functions/completions/_$basepkgname"
}