aports/testing/sauerbraten/APKBUILD
2025-02-20 18:24:13 +00:00

43 lines
1.5 KiB
Text

# Maintainer: Simon Zeni <simon@zeni.ca>
# Contributor: Simon Zeni <simon@zeni.ca>
pkgname=sauerbraten
pkgver=2020.12.29
pkgrel=4
pkgdesc="Quake-like FPS based on an improved version of the Cube engine"
url="http://www.sauerbraten.org/"
arch="all"
license="Zlib"
makedepends="zlib-dev sdl2-dev sdl2_mixer-dev sdl2_image-dev"
options="!check" # no tests
source="https://downloads.sourceforge.net/sauerbraten/sauerbraten_${pkgver//./_}_linux.tar.bz2
sauerbraten-client
sauerbraten-server
"
builddir="$srcdir/$pkgname"
build() {
make -C src
}
package() {
make -C src install
# Executables
install -Dm755 bin_unix/native_client "$pkgdir"/usr/bin/sauer_client
install -Dm755 bin_unix/native_server "$pkgdir"/usr/bin/sauer_server
# Launcher scripts
install -Dm755 $srcdir/sauerbraten-client "$pkgdir"/usr/bin/sauerbraten
install -Dm755 $srcdir/sauerbraten-server "$pkgdir"/usr/bin
# Game data
install -d "$pkgdir"/usr/share/$pkgname
cp -r data "$pkgdir"/usr/share/$pkgname
cp -r packages "$pkgdir"/usr/share/$pkgname
}
sha512sums="
fd2106e4ed3d48352b5cc2f9d4037933a486e6200ef89bf9e3f31952f4a27ef565f7740d45c32bb9b22da0e17e6542257169134f216bc51a6a465ff311f9bae9 sauerbraten_2020_12_29_linux.tar.bz2
67bc774a3df9c8dc08323b0b4feaf06071daf80d88d0d2a83595443239a6ce58f44c6dfc08296cadaffeb1252f6647a74170d5d133e14bce6e3be6c1bc324fd5 sauerbraten-client
84d7c31c083a5d8c1d149f174edd81b046351ee42141a2896e1eec90019579460f2674e0ac25d0f2307b5302720eb24fb4d0fee1c3bd680d8afa1566c92f2e84 sauerbraten-server
"