aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fheroes2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fheroes2/APKBUILD')
-rw-r--r--testing/fheroes2/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/fheroes2/APKBUILD b/testing/fheroes2/APKBUILD
new file mode 100644
index 00000000000..c49ee8c0963
--- /dev/null
+++ b/testing/fheroes2/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Grigory Kirillov <txgk@bk.ru>
+# Maintainer: ovf <ovf@mm.st>
+pkgname=fheroes2
+pkgver=1.0.13
+pkgrel=0
+pkgdesc="Recreation of Heroes of Might and Magic II game engine"
+url="https://github.com/ihhub/fheroes2"
+arch="all"
+license="GPL-2.0-only"
+options="!check" # no test suite
+makedepends="
+ gettext
+ gnu-libiconv
+ sed
+ sdl2-dev
+ sdl2_image-dev
+ sdl2_mixer-dev
+ zlib-dev
+ "
+subpackages="$pkgname-lang"
+source="https://github.com/ihhub/fheroes2/archive/$pkgver/fheroes2-$pkgver.tar.gz"
+install="$pkgname.post-install"
+langdir="/usr/share/$pkgname/files/lang"
+
+build() {
+ make FHEROES2_WITH_IMAGE=1 FHEROES2_DATA=/usr/share/fheroes2
+ # Use GNU iconv instead of musl-based one, because this project uses
+ # TRANSLIT iconv extension which is not present in musl implementation.
+ make -C files/lang ICONV=gnu-iconv
+}
+
+package() {
+ install -Dm755 src/dist/fheroes2 -t "$pkgdir"/usr/bin/
+ install -Dm644 script/packaging/common/fheroes2.desktop -t "$pkgdir"/usr/share/applications/
+ install -Dm644 files/data/*.h2d -t "$pkgdir"/usr/share/"$pkgname"/files/data/
+ install -Dm644 files/lang/*.mo -t "$pkgdir"/usr/share/"$pkgname"/files/lang/
+ install -Dm755 script/demo/download_demo_version.sh -t "$pkgdir"/usr/share/"$pkgname"/
+ install -Dm755 script/homm2/extract_homm2_resources.sh -t "$pkgdir"/usr/share/"$pkgname"/
+ install -Dm644 src/resources/fheroes2.png -t "$pkgdir"/usr/share/pixmaps/
+ install -dm755 "$pkgdir"/usr/share/fheroes2/data
+ install -dm755 "$pkgdir"/usr/share/fheroes2/maps
+}
+
+sha512sums="
+989b71ad6f217c5283441392e5a4bdee8b49d07261dba05372e185dbee239f4bb7b75290ca0b86fbf3dbf98edfaaca6234adc7e0483495ea799bf1636af3f6bc fheroes2-1.0.13.tar.gz
+"