aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 8da9f5a22b34e8d388e1dc21b77911795e1785f5 (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
pkgname=ptpst-git
pkgver=0.r37.36e1852
pkgrel=1

pkgdesc='A small tool to interact with pb deployments'
url="https://github.com/HalosGhost/ptpst"
arch=('i686' 'x86_64')
license=('GPL2')

depends=('curl')
makedepends=('git' 'tup' 'clang')

source=(git+https://github.com/HalosGhost/ptpst.git)
sha256sums=('SKIP')

pkgver () {
	cd ptpst
	printf '0.r%s.%s' "$(git rev-list --count HEAD)" "$(git log -1 --pretty=format:%h)"
}

build () {
	cd ptpst
	tup upd
}

package () {
	cd ptpst
	install -Dm755 src/ptpst "$pkgdir"/usr/bin/ptpst
}