aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wesnoth/APKBUILD
blob: 97946d570c0c73459968051d2de3c1a0274648b6 (plain) (blame)
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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=wesnoth
pkgver=1.14.15
_major=${pkgver%.*}
pkgrel=2
pkgdesc="turn-based strategy game in fantasy world"
url="https://www.wesnoth.org"
arch="all !mips !mips64" # fails to build on mips
license="GPL-2.0-only"
makedepends="boost-dev bzip2-dev cairo-dev cmake dbus-dev fontconfig-dev
	fribidi-dev libvorbis-dev openssl-dev pango-dev sdl2-dev
	sdl2_image-dev sdl2_mixer-dev sdl2_ttf-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://sourceforge.net/projects/wesnoth/files/wesnoth-$_major/wesnoth-$pkgver/wesnoth-$pkgver.tar.bz2"
options="!check" # No tests

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		$CMAKE_CROSSOPTS .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="8e001ceb7782659c4198c8bfee58a7dd29ab6d21e91c5c9eba7da6f5787fcf7673ee76d499f45637b6d43b1bc1397e5d91af601e5fdaab8a6e9fe0e63ed4df9d  wesnoth-1.14.15.tar.bz2"