pkgname=fheroes2 pkgver=1.0.13 pkgrel=1 pkgdesc="Recreation of the Heroes of Might and Magic II game engine" arch=('i686' 'x86_64' 'armv7h') url="https://ihhub.github.io/fheroes2/" license=('GPL-2.0-or-later') depends=( hicolor-icon-theme sdl2_mixer ) makedepends=( cmake gettext ninja ) optdepends=( 'curl: download demo version files (alternative to wget)' 'innoextract: extract game resources from installer package' 'python: extract animation resources from GOG CD image' 'wget: download demo version files (alternative to curl)' 'unzip: unpack demo version files' ) conflicts=('fheroes2-git') source=( "$pkgname-$pkgver.tar.gz::https://github.com/ihhub/$pkgname/archive/$pkgver.tar.gz" ) sha256sums=('eb7f960e77ee8012e5bbab385baf4959797e578454ace82574a3c6fee24f94c8') build() { cd "$pkgname-$pkgver" cmake -B build -G Ninja -S . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build # build man page make -C docs } package() { cd "$pkgname-$pkgver" DESTDIR="$pkgdir" cmake --install build install -dm755 "$pkgdir/usr/share/fheroes2/maps" install -Dm644 docs/fheroes2.6 "$pkgdir/usr/share/man/man6/fheroes2.6" } # vim:set ts=2 sw=2 et: