pkgname=0ad pkgver=alpha26 _pkgver=0.0.26-alpha pkgrel=7 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game" arch=('x86_64') url="https://play0ad.com/" groups=('games') license=('GPL2' 'CCPL') depends=('binutils' 'boost-libs' 'curl' 'enet>=1.3' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'openal' 'sdl2' 'zlib' 'libgl' '0ad-data' 'glu' 'libxcursor' 'mesa' 'libjpeg' 'libtiff' 'openexr' 'gloox' 'libsodium' 'fmt') makedepends=('boost' 'cmake' 'zip' 'python3' 'rust') source=("https://releases.wildfiregames.com/${pkgname}-${_pkgver}-unix-build.tar.xz" 'icu1.68.patch' "https://github.com/0ad/0ad/commit/839edc3ae61cd313d37a14a9a24e2ef1bd4e5808.diff") sha1sums=('e3b62b28cd61ee97f6ae989fc9ba351e6405264c' 'f703537288d133fcd1a0f8a15b73d9ce05b62771' 'ee6a5577b049a7c50b1c7be5ea1a537e54ee7aae') prepare() { cd ${pkgname}-${_pkgver}/ #fmt 10.x needed patch -p1 -i $srcdir/839edc3ae61cd313d37a14a9a24e2ef1bd4e5808.diff } build() { cd ${pkgname}-${_pkgver}/build/workspaces unset CPPFLAGS ./update-workspaces.sh \ --without-miniupnpc \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ --disable-atlas \ --datadir=/usr/share/${pkgname}/data \ --without-tests cd gcc make } package() { cd ${pkgname}-${_pkgver}/ install -d ${pkgdir}/usr/{bin,lib/0ad,share/${pkgname}/data} install -Dm755 binaries/system/pyrogenesis ${pkgdir}/usr/bin install -Dm755 binaries/system/*.so* ${pkgdir}/usr/lib/0ad cp -r binaries/data/l10n/ ${pkgdir}/usr/share/${pkgname}/data/ install -Dm755 build/resources/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname} install -Dm644 build/resources/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop install -Dm644 build/resources/${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png }