summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulio Campagnolo2020-03-22 16:51:25 -0300
committerJulio Campagnolo2020-03-22 16:51:25 -0300
commitadad5b1317f68fac809440814b3cabd93bbfd8b6 (patch)
tree05523294109f8740047ccc873079fb6ff25f8851
parent5acf86d6219b1242e7b06cc70f121b593455210a (diff)
downloadaur-adad5b1317f68fac809440814b3cabd93bbfd8b6.tar.gz
better handle versions
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD5
2 files changed, 31 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dfecfa9d572..398e8332638 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -26,3 +26,31 @@ pkgbase = armorpaint-git
pkgname = armorpaint-git
+pkgbase = armorpaint-git
+ pkgdesc = ArmorPaint is a software for 3D PBR texture painting
+ pkgver = 0.8.r1209.ga7fdc07
+ pkgrel = 1
+ url = https://armorpaint.org/
+ arch = i686
+ arch = x86_64
+ license = ZLIB
+ makedepends = git
+ makedepends = nodejs
+ makedepends = clang
+ makedepends = make
+ makedepends = gcc
+ depends = mesa
+ depends = alsa-lib
+ depends = libxinerama
+ depends = gcc-libs
+ source = git+https://github.com/armory3d/armorpaint
+ source = armorpaint.sh
+ source = armorpaint.desktop
+ source = armorpaint.png
+ md5sums = SKIP
+ md5sums = 728cc52bfa9e7b16390459e7a80fad16
+ md5sums = dd5d97aadd39966ff7d9dda68b5ae29a
+ md5sums = 67cf4a0cb08c66c4a68c677885e8ac99
+
+pkgname = armorpaint-git
+
diff --git a/PKGBUILD b/PKGBUILD
index 2577c4a8c9f..d00468619e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=('armorpaint-git')
_pkgname='armorpaint'
-pkgver=1209
+pkgver=0.8.r1209.ga7fdc07
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="ArmorPaint is a software for 3D PBR texture painting"
@@ -22,7 +22,8 @@ md5sums=(SKIP
pkgver() {
cd ${srcdir}/${_pkgname}
- git rev-list --count HEAD
+ ver=$(grep -Po '(^|\s)+(public static var version =)(\s)+\"\K(([0-9|\.])+)' 'Sources/Main.hx')
+ printf "%s.r%s.g%s" "$ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {