diff options
author | Giorgio Gilestro | 2020-05-12 17:35:08 +0100 |
---|---|---|
committer | Giorgio Gilestro | 2020-05-12 17:35:08 +0100 |
commit | 20c9ccb965a2ef16897153cbbd71b6a35edd72a8 (patch) | |
tree | ba539d4c63b121172e0f52296adb0085a0b8e0ff /PKGBUILD | |
parent | 1deb1b1f1166f2753bad446b6d149860a430314f (diff) | |
download | aur-20c9ccb965a2ef16897153cbbd71b6a35edd72a8.tar.gz |
changing VER tagging
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,8 +1,8 @@ # Maintainer: Giorgio Gilestro <giorgio at gilest.ro> pkgname=ethoscope-node -pkgver=r1704.g6d72a77 -pkgrel=5 +pkgver=0.0.0 +pkgrel=1 pkgdesc="A platform for monitoring animal behaviour in real time from a raspberry pi" arch=('any') url="http://lab.gilest.ro/ethoscope" @@ -11,12 +11,13 @@ makedepends=('git' 'gcc-fortran' 'rsync' 'wget' 'fping' ) depends=('ntp' 'openssh' 'mariadb' 'dnsmasq' 'avahi' 'python-setuptools' 'python-pip' 'python-ifaddr' 'python-numpy' 'python-bottle' 'python-pyserial' 'python-mysql-connector' 'python-netifaces' 'python-cherrypy' 'python-eventlet' 'python-gitpython' 'python-dnspython' 'python-greenlet' 'python-monotonic' 'python-zeroconf' 'python-cheroot') provides=('ethoscope') install="ethoscope-node.install" -source=("$pkgname::git+https://github.com/gilestrolab/ethoscope.git") +source=("$pkgname::git://github.com/gilestrolab/ethoscope.git") md5sums=('SKIP') pkgver() { - cd "$pkgname" - printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$srcdir/$pkgname" + # Use the tag of the last commit + git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g' } package() { |