blob: bd95df29f3d6cfc6ab1d8cf5a87a8f5ca3bbe46c (
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
53
54
55
|
# Maintainer: Lari Tikkanen <lartza@wippies.com>
# Contributor: Ian D. Scott <ian@perebruin.com>
# Use an alternative Qt backend to the SDL default. May not fully work, report issues upstream.
_use_qt_backend="0"
pkgname=warzone2100-git
_gitname=warzone2100
pkgver=r13675.10b39fc53
pkgrel=1
pkgdesc="3D realtime strategy game on a future Earth (Git version)"
arch=('i686' 'x86_64')
url="http://wz2100.net/"
license=('GPL')
depends=('qt5-script' 'sdl2' 'libtheora' 'openal' 'libvorbis' 'physfs' 'quesoglc' 'ttf-dejavu')
if [[ ${_use_qt_backend} == "1" ]]; then
depends+=('qt5-x11extras')
fi
makedepends=('zip' 'unzip' 'git')
provides=('warzone' 'warzone2100' 'warzone-svn' 'warzone2100-beta')
conflicts=('warzone2100')
source=('git://github.com/Warzone2100/warzone2100.git'
'physfs3.patch')
md5sums=('SKIP'
'97c50bcd407fb90322c8a37523ee8e77')
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
# Apply patch to fix PhysFS 3 deprecation warnings
patch -Np1 -i "${srcdir}/physfs3.patch"
}
build() {
cd "$srcdir/$_gitname"
./autogen.sh
if [[ $_use_qt_backend == "1" ]]; then
./configure --prefix=/usr --with-backend=qt --disable-debug
else
./configure --prefix=/usr --disable-debug
fi
make
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir" install
}
|