summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 79dc805d69c..bc5f10a034b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,14 +20,17 @@ _error_log="errors.log"
pkgver() {
pushd ${startdir}/nchan > /dev/null
- _nchan_rev=$(git rev-list --count HEAD)
+ _nchan_ver=`git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'`
+ if [[ $_nchan_ver =~ ^v[0-9] ]]; then
+ _nchan_ver=${_nchan_ver:1}
+ fi
popd > /dev/null
- echo "${_nginx_ver}.nchan${_pushmodule_ver}.${_nchan_rev}"
+ echo "${_nginx_ver}.nchan${_nchan_ver}"
}
pkgname=nginx-nchan-git
-pkgver=1.8.0.nchan.1359
+pkgver=1.8.0.nchan0.9.r9.g9866433
pkgrel=1
pkgdesc="Nginx + Nchan - a flexible pub/sub server (git version)"
arch=('i686' 'x86_64')