summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiorgio Gilestro2020-05-12 17:35:08 +0100
committerGiorgio Gilestro2020-05-12 17:35:08 +0100
commit20c9ccb965a2ef16897153cbbd71b6a35edd72a8 (patch)
treeba539d4c63b121172e0f52296adb0085a0b8e0ff
parent1deb1b1f1166f2753bad446b6d149860a430314f (diff)
downloadaur-ethoscope-node.tar.gz
changing VER tagging
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5cdee1f06fe..1c791ea155e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ethoscope-node
pkgdesc = A platform for monitoring animal behaviour in real time from a raspberry pi
- pkgver = r1704.g6d72a77
- pkgrel = 5
+ pkgver = 1
+ pkgrel = 1
url = http://lab.gilest.ro/ethoscope
install = ethoscope-node.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 97f047de09e..db60641b365 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {