2022-02-09 08:18:46 +03:00
|
|
|
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
2023-08-18 11:12:59 +01:00
|
|
|
# Maintainer: ovf <ovf@mm.st>
|
2022-02-09 08:18:46 +03:00
|
|
|
pkgname=fheroes2
|
2025-02-16 19:33:46 +00:00
|
|
|
pkgver=1.1.6
|
2023-08-18 11:12:59 +01:00
|
|
|
pkgrel=0
|
2022-09-11 17:30:26 +03:00
|
|
|
pkgdesc="Recreation of Heroes of Might and Magic II game engine"
|
2022-02-09 08:18:46 +03:00
|
|
|
url="https://github.com/ihhub/fheroes2"
|
2022-04-10 00:08:46 +03:00
|
|
|
arch="all"
|
2022-02-09 08:18:46 +03:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!check" # no test suite
|
|
|
|
makedepends="
|
|
|
|
gettext
|
2022-08-11 13:01:10 +03:00
|
|
|
gnu-libiconv
|
|
|
|
sed
|
2022-02-09 08:18:46 +03:00
|
|
|
sdl2-dev
|
|
|
|
sdl2_image-dev
|
|
|
|
sdl2_mixer-dev
|
|
|
|
zlib-dev
|
|
|
|
"
|
2022-06-12 15:27:00 +03:00
|
|
|
subpackages="$pkgname-lang"
|
2022-05-09 16:33:09 +03:00
|
|
|
source="https://github.com/ihhub/fheroes2/archive/$pkgver/fheroes2-$pkgver.tar.gz"
|
|
|
|
install="$pkgname.post-install"
|
|
|
|
langdir="/usr/share/$pkgname/files/lang"
|
2022-02-09 08:18:46 +03:00
|
|
|
|
|
|
|
build() {
|
2022-08-11 13:01:10 +03:00
|
|
|
# Use GNU iconv instead of musl-based one, because this project uses
|
|
|
|
# TRANSLIT iconv extension which is not present in musl implementation.
|
2024-12-31 16:21:44 +00:00
|
|
|
make ICONV=gnu-iconv FHEROES2_WITH_IMAGE=1 FHEROES2_DATA=/usr/share/fheroes2
|
2022-02-09 08:18:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-12-31 16:21:44 +00:00
|
|
|
install -Dm755 src/dist/fheroes2/fheroes2 -t "$pkgdir"/usr/bin/
|
2022-05-09 16:33:09 +03:00
|
|
|
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/
|
2022-02-09 08:18:46 +03:00
|
|
|
install -dm755 "$pkgdir"/usr/share/fheroes2/data
|
|
|
|
install -dm755 "$pkgdir"/usr/share/fheroes2/maps
|
|
|
|
}
|
|
|
|
|
2022-05-09 16:33:09 +03:00
|
|
|
sha512sums="
|
2025-02-16 19:33:46 +00:00
|
|
|
6fed1647f6c983d20bea804ac2dff55d33b42c4acf1e82b2dd45b6085c07df9d2b24d2aaa76fed8744b37cb8cafa025900f80918bcee3a590e6665e5458df695 fheroes2-1.1.6.tar.gz
|
2022-05-09 16:33:09 +03:00
|
|
|
"
|