summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cfcf756e3b183cd0bdaf63f35385a1e71bbdf1f (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
# Maintainer: Antun Nitraj <antnitraj@gmail.com>

pkgname=pact-git
_pkgname=${pkgname%-git}
pkgver=1
pkgrel=1
pkgdesc="A simple wrapper for the pacman package manager similar to apt."
arch=('any')
url="https://github.com/antunnitraj/$_pkgname"
license=('GPL')
makedepends=('git')
source=("$_pkgname::git+https://github.com/antunnitraj/$_pkgname.git")
md5sums=('SKIP')

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

package() {
	cd "$_pkgname"
	install -Dm755 ./$_pkgname "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 ./README.md -t "$pkgdir/usr/share/doc/$_pkgname/"
	install -Dm644 ./LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname/"
}