summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorf0x2020-04-13 17:21:58 +0200
committerf0x2020-04-13 17:21:58 +0200
commit03dc8b14be928ff70b6aae280087ade85bfc5747 (patch)
treed6b75834733577966dd5b92878b0ae0a611bd664
parent8099b4e3b612102dbe0ac5b969219694bd1c2721 (diff)
downloadaur-03dc8b14be928ff70b6aae280087ade85bfc5747.tar.gz
get source before pkgver runs
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD22
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 76ee5ff20a6..e4c74edaa22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = hikari-darcs
pkgdesc = Stacking Wayland compositor with additional tiling capabilities, heavily inspired by the Calm Window manager (cwm)
- pkgver = 1.0.2.20200412091748
+ pkgver = 1.0.2.20200412164624
pkgrel = 1
epoch = 1
url = https://hikari.acmelabs.space
diff --git a/PKGBUILD b/PKGBUILD
index 920e6e04764..734386a0a92 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: f0x <aur at cthu dot lu>
pkgname=hikari-darcs
-pkgver=1.0.2.20200412091748
+pkgver=1.0.2.20200412164624
pkgrel=1
epoch=1
pkgdesc='Stacking Wayland compositor with additional tiling capabilities, heavily inspired by the Calm Window manager (cwm)'
@@ -17,14 +17,7 @@ source=()
_darcsmod="hikari"
_darcstrunk="https://hub.darcs.net/raichoo"
-pkgver(){
- cd ${srcdir}/$_darcsmod
- lastver=$(darcs show tags | head -n1)
- timestamp=$(darcs log -n 1 --xml-output | grep -oP "(?<=date=')\d+")
- echo $lastver.$timestamp
-}
-
-build(){
+prepare() {
cd ${srcdir}
if [[ -d ${srcdir}/$_darcsmod/_darcs ]]
then
@@ -36,6 +29,17 @@ build(){
darcs get --set-scripts-executable $_darcstrunk/$_darcsmod
cd $_darcsmod
fi
+}
+
+pkgver() {
+ cd ${srcdir}/$_darcsmod
+ lastver=$(darcs show tags | head -n1)
+ timestamp=$(darcs log -n 1 --xml-output | grep -oP "(?<=date=')\d+")
+ echo $lastver.$timestamp
+}
+
+build() {
+ cd "$srcdir/$_darcsmod"
bmake WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES
}