summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 12 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f1d860888eb5..387796474406 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,22 @@
# Maintainer: robertfoster
pkgname=xash3d-hlsdk
-pkgver=r322.43d63a1
+pkgver=r428.52b067fd
pkgrel=1
pkgdesc="Half-Life SDK from original Xash3D engine"
arch=('i686' 'x86_64')
url="http://xash.su/"
license=('GPL3')
-makedepends=('make' 'binutils' 'cmake')
-makedepends_i686=('gcc')
-makedepends_x86_64=('gcc-multilib' 'lib32-gcc-libs')
+makedepends=('make' 'binutils' 'cmake' 'gcc')
source=("$pkgname::git+https://github.com/FWGS/hlsdk-xash3d")
+_args="--libdir=/usr/lib \
+--build-type=release"
+
+if [ $CARCH == "x86_64" ]; then
+ _args+=" -8"
+fi
+
pkgver() {
cd $srcdir/$pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
@@ -20,24 +25,17 @@ pkgver() {
prepare() {
cd $srcdir/$pkgname
git submodule init && git submodule update
+ ./waf configure ${_args}
}
build() {
cd $srcdir/$pkgname
- if [ -d build ]; then
- rm -rf build
- fi
- mkdir build
- cd build
- cmake ../ -DCMAKE_INSTALL_PREFIX="/usr/lib32"
- make
-
+ ./waf build
}
package() {
cd $srcdir/$pkgname/
- cd build
- make DESTDIR=$pkgdir install
+ ./waf install --destdir="$pkgdir/usr/lib"
}
md5sums=('SKIP')