summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPol_M2018-07-30 15:16:47 +0200
committerPol_M2018-07-30 15:16:47 +0200
commite822a582a4568e7fa05d981ff2660226f86a1dd1 (patch)
treef8519bb663090051d4ab857cebe8d112e8e7c79c
parenta73649b1290cc741f4a5925747b695a0a794f7f5 (diff)
downloadaur-e822a582a4568e7fa05d981ff2660226f86a1dd1.tar.gz
fixes suggested by Lone_Wolf
-rwxr-xr-x.SRCINFO4
-rwxr-xr-xPKGBUILD16
2 files changed, 12 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cc05afd9942..31c73d9da4c 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = doomseeker
pkgdesc = A cross-platform Doom server browser
- pkgver = 1.2
- pkgrel = 20180730
+ pkgver = r2191+.c2c7f37b1afb+
+ pkgrel = 1
url = http://doomseeker.drdteam.org/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 882a3463b0e..29fde738d0d 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: Reotip Sakuraga <reotipfur@gmail.com>
pkgname=doomseeker
-pkgver=1.2
-pkgrel=20180730
+pkgver=r2191+.c2c7f37b1afb+
+pkgrel=1
pkgdesc="A cross-platform Doom server browser"
arch=(i686 x86_64)
url="http://doomseeker.drdteam.org/"
@@ -27,23 +27,27 @@ sha256sums=('SKIP'
'96fca72228a50d80b019adf3c82b8800a9d7f03994252e544513537541d011a4'
'de43c3fe7557079f1937e6c5aef5c01fa3ce4c4bd561db73a0b2a1fe2193bcdb')
-_bbdir=doomseeker
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
prepare() {
cd $srcdir/$pkgname
patch -p1 -i "${srcdir}/doomseeker.qt5.11.patch"
}
build() {
- cd $srcdir/$_bbdir
+ cd $srcdir/$pkgname
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && \
- make -j$(nproc)
+ make
}
package() {
mkdir -p $pkgdir/usr/games/doomseeker/engines/
- cd $srcdir/$_bbdir/build
+ cd $srcdir/$pkgname/build
install -Dm755 doomseeker "$pkgdir/usr/games/doomseeker"
for f in libwadseeker.so*; do
install -Dm755 $f "$pkgdir/usr/games/doomseeker"