blob: f3765ce7e657a2b0761903e5f7d712640f0d7f9d (
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
44
45
46
47
48
49
50
51
52
|
# Maintainer: robertfoster
pkgname=xash3d-git
pkgver=r188.b1db062
pkgrel=1
pkgdesc="A custom Gold Source engine rewritten from scratch"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="http://xash.su/"
license=('GPL3')
depends=('freetype2' 'fontconfig' 'sdl2' 'vgui')
depends_x86_64=('lib32-freetype2' 'lib32-fontconfig' 'lib32-sdl2' 'lib32-vgui')
makedepends=('make' 'binutils' 'cmake')
makedepends=('gcc')
makedepends_x86_64=('gcc-multilib' 'lib32-gcc-libs')
source=("$pkgname::git+https://github.com/FWGS/xash3d-fwgs.git"
${pkgname%%-git}
"https://raw.githubusercontent.com/FWGS/xash3d/master/game_launch/icon-xash-material.png"
${pkgname%%-git}.conf.d
${pkgname%%-git}.desktop
)
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
./waf configure --prefix=/usr --vgui https://github.com/FWGS/vgui-dev
}
build() {
cd $srcdir/$pkgname
./waf build
}
package() {
cd $srcdir/$pkgname/
./waf --destdir="$pkgdir" install
mv $pkgdir/usr/lib $pkgdir/usr/lib32
install -Dm644 ../${pkgname%%-git}.conf.d $pkgdir/etc/conf.d/${pkgname%%-git}
install -Dm755 ../${pkgname%%-git} $pkgdir/usr/bin/${pkgname%%-git}
install -Dm644 ../${pkgname%%-git}.desktop $pkgdir/usr/share/applications/${pkgname%%-git}.desktop
install -Dm644 ../icon-xash-material.png $pkgdir/usr/share/pixmaps/${pkgname%%-git}.png
}
md5sums=('SKIP'
'e2507dc0ca2fcd5de9c8d485fa0382ae'
'edb56dbd55309beef7d8e82298d48f4d'
'f4475bb569ad292f6a3711b74ced7bab'
'60d714544048b0383a7e79cfaed96d78')
|