summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d63a7139b032ef31479023ad6c22e720af2aff7 (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
# Maintainer: ThiBsc <thibsc at tutanota dot com>
pkgname=stopwatchcpp
_gitname=stopwatch
_binaryname=sw
pkgver=c8
pkgrel=1
pkgdesc="A command line stopwatch"
arch=('any')
url="https://github.com/thibsc/stopwatch"
license=('MIT')
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd ${srcdir}/${_gitname}
	printf "c%s" "$(git rev-list --count HEAD)"
}

build() {
	cd ${srcdir}/${_gitname}
	make
}

package() {
	install -Dm755 ${srcdir}/${_gitname}/bin/${_binaryname} ${pkgdir}/usr/bin/${_binaryname}
}