summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Vorotnikov2015-08-28 23:50:12 +0300
committerArtem Vorotnikov2015-08-28 23:51:17 +0300
commitd0eccf441d3db250ad712134a2331eda9b2268e3 (patch)
treef4260b4ebd970cf201e656bc7fa7f74c8350c6bc
parent8f1299ca2db5a7994c23e55d903f17c530b72d8b (diff)
downloadaur-d0eccf441d3db250ad712134a2331eda9b2268e3.tar.gz
Improved pkgver()
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
2 files changed, 9 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 898a4bfcae8..74734988289 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = obozrenie-git
pkgdesc = Simple and easy to use game server browser
- pkgver = 0.1
+ pkgver = r45.f90c656
pkgrel = 1
url = http://github.com/obozrenie
install = obozrenie.install
@@ -20,7 +20,7 @@ pkgbase = obozrenie-git
provides = obozrenie
conflicts = obozrenie
source = git+https://github.com/obozrenie/obozrenie.git
- sha256sums = SKIP
+ sha512sums = SKIP
pkgname = obozrenie-git
diff --git a/PKGBUILD b/PKGBUILD
index d2035b2f653..86c0655e2eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
-pkgname=obozrenie-git
-pkgver=0.1
+_pkgname=obozrenie
+pkgname=$_pkgname-git
+pkgver=r45.f90c656
pkgrel=1
pkgdesc='Simple and easy to use game server browser'
arch=('any')
@@ -13,16 +14,15 @@ provides=('obozrenie')
conflicts=('obozrenie')
install='obozrenie.install'
source=('git+https://github.com/obozrenie/obozrenie.git')
-sha256sums=('SKIP')
+sha512sums=('SKIP')
pkgver() {
- cd obozrenie
-
- printf "%s" "$(git describe | sed 's/v//; s/-/.r/; s/-g/./')"
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd obozrenie
+ cd $_pkgname
python setup.py install --root="${pkgdir}" --optimize='1'
install -Dm755 obozrenie-gtk ${pkgdir}/usr/bin/obozrenie-gtk