summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1d860888eb51bff000978eca3d70061249a5258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: robertfoster

pkgname=xash3d-hlsdk
pkgver=r322.43d63a1
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')
source=("$pkgname::git+https://github.com/FWGS/hlsdk-xash3d")

pkgver() {
    cd $srcdir/$pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $srcdir/$pkgname
    git submodule init && git submodule update
}

build() {
    cd $srcdir/$pkgname
        if [ -d build ]; then
               rm -rf build
        fi
	mkdir build
        cd build
        cmake ../ -DCMAKE_INSTALL_PREFIX="/usr/lib32"
        make

}

package() {
    cd $srcdir/$pkgname/
    cd build
    make DESTDIR=$pkgdir install
}

md5sums=('SKIP')