summaryrefslogtreecommitdiff
path: root/testing/cdogs-sdl/APKBUILD
blob: c5b0bbad432dc3a55da64af823712ab2d4cb2ea7 (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
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=cdogs-sdl
pkgver=0.7.0
pkgrel=0
pkgdesc="Classic overhead run-and-gun game"
url="https://cxong.github.io/cdogs-sdl/"
arch="all"
license="GPL-1.0-only"
makedepends="cmake sdl2_image-dev sdl2-dev sdl2_mixer-dev mesa-dev"
options="!check" # make check not implemented
source="$pkgname-$pkgver.tar.gz::https://github.com/cxong/cdogs-sdl/archive/$pkgver.tar.gz"

build() {
	cmake CMakeLists.txt \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCDOGS_DATA_DIR=/usr/share/cdogs-sdl/ \
		-DCMAKE_BUILD_TYPE=Release
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="33ff3a0fa9c8f5d32b79caf52fc9cf1472d71245821f841fdaa926acaa7c4342884be975962f128e5d5f24e2ad86923547116f8ca29d157960cc1181d4aa6cba  cdogs-sdl-0.7.0.tar.gz"