summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorm8D22019-03-02 19:42:08 -0800
committerm8D22019-03-02 19:42:08 -0800
commit223602ea1cc36fd9753288e7f4f8c6cecc06afd6 (patch)
treec88e0c9aa345014d8ddf9882a53f3f961f0fd3fe
parent973ca97f47915a5489771e7b4a09c08814d8c26f (diff)
downloadaur-223602ea1cc36fd9753288e7f4f8c6cecc06afd6.tar.gz
3.2.4.r5.g2ee1235 and proper versioning
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD16
2 files changed, 13 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index be29eeae7ce..20886402270 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = shadowsocks-libev-git
pkgdesc = A lightweight secured socks5 proxy for embedded devices and low end boxes
- pkgver = 3.2.4.r1
+ pkgver = 3.2.4.r5.g2ee1235
pkgrel = 1
url = https://github.com/shadowsocks/shadowsocks-libev
install = shadowsocks-libev-git.install
@@ -19,7 +19,7 @@ pkgbase = shadowsocks-libev-git
depends = libbloom
provides = shadowsocks-libev
conflicts = shadowsocks-libev
- source = shadowsocks-libev-git-3.2.4.r1::git+https://github.com/shadowsocks/shadowsocks-libev.git
+ source = shadowsocks-libev-git::git+https://github.com/shadowsocks/shadowsocks-libev.git
source = shadowsocks-libev@.service
source = shadowsocks-libev-server@.service
source = shadowsocks-libev-redir@.service
diff --git a/PKGBUILD b/PKGBUILD
index 5bdc6c224ed..93e9467e325 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=shadowsocks-libev-git
-pkgver=3.2.4.r1
+pkgver=3.2.4.r5.g2ee1235
pkgrel=1
pkgdesc='A lightweight secured socks5 proxy for embedded devices and low end boxes'
arch=(x86_64)
@@ -17,7 +17,7 @@ makedepends=(asciidoc xmlto git)
provides=(shadowsocks-libev)
conflicts=(shadowsocks-libev)
install=${pkgname}.install
-source=("$pkgname-$pkgver::git+https://github.com/shadowsocks/shadowsocks-libev.git"
+source=("$pkgname::git+https://github.com/shadowsocks/shadowsocks-libev.git"
'shadowsocks-libev@.service'
'shadowsocks-libev-server@.service'
'shadowsocks-libev-redir@.service'
@@ -28,14 +28,20 @@ sha512sums=('SKIP'
'f2782245478951b35676370c53d6e6d03021bca4327950087f0906ea4ab6606432df9e3dc8036f482f44da186d70b01b575542722c797b3adc14658fda276ea4'
'42043ac083e9425ce48ba02e6e7cbedd8f4c81c9e9f79b375937635362a461dd09ddba76c520eacbecdc1993e9b1bd203e55d3b331db9b22d98b5ba4196f8886')
+pkgver() {
+ cd "$pkgname"
+ # cutting off 'v' prefix that presents in the git tag
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
prepare() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir"/$pkgname
sed -i 's|AC_CONFIG_FILES(\[libbloom/Makefile libcork/Makefile libipset/Makefile\])||' configure.ac
}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir"/$pkgname
./autogen.sh
./configure --prefix=/usr --enable-shared --enable-system-shared-lib
@@ -43,7 +49,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir"/$pkgname
make DESTDIR="$pkgdir/" install
install -Dm644 "$srcdir/shadowsocks-libev@.service" "$pkgdir/usr/lib/systemd/system/shadowsocks-libev@.service"
install -Dm644 "$srcdir/shadowsocks-libev-server@.service" "$pkgdir/usr/lib/systemd/system/shadowsocks-libev-server@.service"