summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2014-09-18 11:45:06 -0500
committerDoug Newgard2014-09-18 11:45:06 -0500
commit5940f18fcf599ec52eb0c5b1a58fd4a8b8bd5975 (patch)
treeedca701a8e4e55fd1b168df75965dc826fa9977f
parentfaf91a7e5efc05cd9f382a2a468905d136b75047 (diff)
downloadaur-5940f18fcf599ec52eb0c5b1a58fd4a8b8bd5975.tar.gz
Add upstream version number
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b1f7e79fb15..114aa87a5d9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = sddm-archlinux-theme-git
pkgdesc = Archlinux Theme for SDDM
- pkgver = r11.8898d77
- pkgrel = 2
+ pkgver = 0.1.r11.8898d77
+ pkgrel = 1
url = https://github.com/absturztaube/sddm-archlinux-theme
install = sddm-archlinux-theme.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 78b971835e2..b0be3e39fea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_pkgname=sddm-archlinux-theme
pkgname=$_pkgname-git
-pkgver=r11.8898d77
-pkgrel=2
+pkgver=0.1.r11.8898d77
+pkgrel=1
pkgdesc="Archlinux Theme for SDDM"
license=('GPL')
arch=('i686' 'x86_64')
@@ -17,7 +17,8 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
- printf "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ local _ver=$(awk -F '=' '/Version/ {print $2}' archlinux/metadata.desktop)
+ printf "$_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {