summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2017-07-05 22:28:51 +0200
committerCarsten Teibes2017-07-05 22:28:51 +0200
commit361453baa27a017b6a6f4a363f52125d94e21e0a (patch)
tree3b9183076394b50f61d281ea013287b9a84696b1
parent549cb08e1721efd9d9825aab00798431143937ce (diff)
downloadaur-yamagi-quake2-xatrix-git.tar.gz
[upd] use cmake, [fix] game library path
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD18
2 files changed, 15 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 30f1d38f77a..6eed47b5011 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = yamagi-quake2-xatrix-git
pkgdesc = Quake II - Mission Pack 1 ('The Reckoning') for yamagi-quake2 (development version)
- pkgver = 2.01.r3.g150c521
+ pkgver = 2.05.r1.g99a032c
pkgrel = 1
url = http://www.yamagi.org/quake2/
install = yamagi-quake2-xatrix.install
@@ -8,6 +8,7 @@ pkgbase = yamagi-quake2-xatrix-git
arch = x86_64
license = GPL
license = custom
+ makedepends = cmake
depends = sh
depends = yamagi-quake2
provides = yamagi-quake2-xatrix
diff --git a/PKGBUILD b/PKGBUILD
index 075bdeeeafe..a4f7c8cf6e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,14 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
pkgname=yamagi-quake2-xatrix-git
-pkgver=2.01.r3.g150c521
+pkgver=2.05.r1.g99a032c
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Quake II - Mission Pack 1 ('The Reckoning') for yamagi-quake2 (development version)"
url="http://www.yamagi.org/quake2/"
license=('GPL' 'custom')
depends=('sh' 'yamagi-quake2')
+makedepends=('cmake')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
install=${pkgname%-*}.install
@@ -23,19 +24,26 @@ pkgver() {
git describe --long --tags | sed 's/^XATRIX_//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g'
}
+prepare() {
+ rm -rf build
+ mkdir -p build
+}
+
build() {
- make -C ${pkgname%-*}
+ cd build
+ cmake ../${pkgname%-*} -DCMAKE_BUILD_TYPE=Release
+ make
}
package() {
+ # game library
+ install -Dm644 build/Release/game.so "$pkgdir"/usr/lib/yamagi-quake2/xatrix/game.so
+
cd ${pkgname%-*}
# game launcher
install -Dm755 ../${pkgname%-*}.sh "$pkgdir"/usr/bin/${pkgname%-*}
- # game library
- install -Dm644 release/game.so "$pkgdir"/usr/share/yamagi-quake2/xatrix/game.so
-
# doc
install -Dm644 README "$pkgdir"/usr/share/doc/${pkgname%-*}/README