diff options
| author | alpterry <alpterry@protonmail.com> | 2019-12-28 18:41:31 +0100 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2019-12-28 18:27:08 +0100 |
| commit | 9ff97daedc33f85e6ae4081da95d44dc61ea2570 (patch) | |
| tree | ac7f35b556bba0bd265d692ba3ab1fc8201fb713 /testing | |
| parent | da7f7df21ab8647bbb2feb4185a4fe285800fd9f (diff) | |
| download | aports-9ff97daedc33f85e6ae4081da95d44dc61ea2570.tar.bz2 aports-9ff97daedc33f85e6ae4081da95d44dc61ea2570.tar.xz | |
testing/supertux: new aport
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/supertux/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/supertux/APKBUILD b/testing/supertux/APKBUILD new file mode 100644 index 0000000000..5fab425f38 --- /dev/null +++ b/testing/supertux/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: alpterry <alpterry@protonmail.com> +# Maintainer: alpterry <alpterry@protonmail.com> +pkgname=supertux +pkgver=0.6.1 +pkgrel=0 +pkgdesc="Open-source classic 2D jump'n run sidescroller game" +url="https://www.supertux.org/" +arch="all !s390x" # build fails +license="GPL-3.0-or-later" +depends="$pkgname-data" +makedepends="boost-dev cmake curl-dev freetype-dev glew-dev libpng-dev libvorbis-dev openal-soft-dev physfs-dev sdl2-dev sdl2_image-dev" +subpackages="$pkgname-doc $pkgname-data::noarch" +options="!check" # no test suite +source="https://github.com/SuperTux/supertux/releases/download/v$pkgver/SuperTux-v$pkgver-Source.tar.gz" +builddir="$srcdir/SuperTux-v$pkgver-Source" + +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=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DINSTALL_SUBDIR_BIN=bin \ + ${CMAKE_CROSSOPTS} . + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +data() { + pkgdesc="$pkgdesc (data files)" + + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/games "$subpkgdir"/usr/share/games +} + +sha512sums="38a1da2a0546aa7fb98ece307b35a7e03a154b018d4b732592d3a718fd6c8ba827f3f8d99f0df777b7f438c0294c1838185ea7e60cc08f8cdb6f9a46b440e860 SuperTux-v0.6.1-Source.tar.gz" |
