# Maintainer: Fabio 'Lolix' Loli -> https://github.com/FabioLolix # Contributor: fzerorubigd # Contributor: Emmanuel Gil Peyrot pkgname=openage-git pkgver=0.5.3.r1.g3c24463de pkgrel=2 pkgdesc="A free (as in freedom) clone of the Age of Empires II engine" arch=(x86_64 i686 pentium4 armv7h aarch64) url="https://openage.sft.mx/" license=(GPL3) depends=(libepoxy opusfile qt6-declarative qt6-multimedia vulkan-icd-loader libpng libogg nyan-lang python-pillow python-numpy python-toml python-mako python-pygments python-lz4 ttf-dejavu # namcap implicit depends glibc gcc-libs python gperftools harfbuzz fontconfig freetype2 qt6-base libglvnd opus ncurses) makedepends=(git cmake cython vulkan-headers eigen toml11) provides=(openage) conflicts=(openage) source=("git+https://github.com/SFTtech/openage.git") sha256sums=('SKIP') pkgver() { cd openage git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cmake -B build -S "openage" -Wno-dev \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTING=ON cmake --build build } check() { ctest --test-dir build --output-on-failure cd build ./run.py test --run-all-tests } package() { DESTDIR="$pkgdir" cmake --install build }