summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df1cf6900bead3cef006118879a783729d9c481e (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
# Maintainer: Hayate NAKA-MURA <hayatehay.njb at gmail dot com>

pkgname="nako-git"
_pkgname="nako"
pkgver=v1.0.r39.4d30686
pkgrel=1
pkgdesc="An AUR helper written in Bash and Pyalpm (development version)"
arch=('any')
url="https://github.com/njb-fm/nako"
license=('BSD')
provides=('nako')
conflicts=('nako')
depends=('sudo' 'pacman' 'git' 'jq' 'python3' 'curl' 'pyalpm' 'python-srcinfo')
optdepends=('aurvote: for voting')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
	cd ${_pkgname}
	printf "v%s.r%s.%s" "$(git describe --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd ${srcdir}/${_pkgname}
	make DESTDIR=${pkgdir} PREFIX=/usr install
}