diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,7 +2,7 @@ pkgname=stopwatchcpp _gitname=stopwatch _binaryname=sw -pkgver=v1 +pkgver=c7 pkgrel=1 pkgdesc="A command line stopwatch" arch=('any') @@ -12,6 +12,11 @@ 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 |