From 3e983b026cf63764998feba38972f39f1de75ac0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 28 Mar 2023 13:10:31 -0400 Subject: [PATCH] user/slade: new aport --- user/slade/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 user/slade/APKBUILD diff --git a/user/slade/APKBUILD b/user/slade/APKBUILD new file mode 100644 index 0000000..3b1f7a8 --- /dev/null +++ b/user/slade/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) +# Contributor: ovf +pkgname=slade +pkgver=3.2.1 +pkgrel=0 +pkgdesc="A modern editor for Doom-engine based games and source ports" +url="http://slade.mancubus.net/" +arch="all" +license="GPL-2.0-or-later" +makedepends=" + cmake + fluidsynth-dev + freeimage-dev + ftgl-dev + lua-dev + mpg123-dev + sfml-dev + wxwidgets-dev + zip +" +source="https://github.com/sirjuddington/SLADE/archive/refs/tags/$pkgver/slade-$pkgver.tar.gz" +builddir="$srcdir/SLADE-$pkgver" + +options="!check" # there are no tests + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=None \ + -DNO_COTIRE=ON \ + $CMAKE_CROSSOPTS . + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +b7d5a91c759c5a68af63aa9a8412452a5b2986e70f7189ca92ee99ce4953ef47381be907c8ce1166e479f24679904bf5f0e0b1a5da846fe7873c5b97f4315449 slade-3.2.1.tar.gz +"