name : 0ad version : 0.0.26 release : 56 source : - https://releases.wildfiregames.com/0ad-0.0.26-alpha-unix-build.tar.gz : 4a9905004e220d774ff07fd31fe5caab3ada3807eeb7bf664b2904583711421c homepage : https://play0ad.com/ license : - BSD-2-Clause - CC-BY-SA-3.0 # Mods - GPL-2.0-or-later - ISC # Encryption - MIT - Zlib # tinygettext third party component : games.strategy summary : 0 A.D. is a free, open-source, cross-platform real-time strategy game of ancient warfare description: | 0 A.D. is a free, open-source, cross-platform real-time strategy game of ancient warfare. builddeps : - pkgconfig(fmt) - pkgconfig(freetype2) - pkgconfig(gl) - pkgconfig(gloox) - pkgconfig(gnutls) - pkgconfig(icu-io) - pkgconfig(libcurl) - pkgconfig(libenet) - pkgconfig(libjpeg) - pkgconfig(libsodium) - pkgconfig(libtiff-4) - pkgconfig(miniupnpc) - pkgconfig(openal) - pkgconfig(sdl2) - pkgconfig(vorbis) - pkgconfig(x11) - git - libboost-devel - rust - wxwidgets-devel rundeps : - 0ad-data setup : | %patch -p1 -i $pkgfiles/0001-Add-startup-class-to-desktop-file-so-we-can-provide-.patch %patch -p1 -i $pkgfiles/0ad-rpath.patch %patch -p1 -i $pkgfiles/ftbfs-gcc-13.patch %patch -p1 -i $pkgfiles/ftbfs-fmt-10.patch %patch -p1 -i $pkgfiles/ftbfs-libxml2-2.12.patch %patch -p1 -i $pkgfiles/0001-Fix-compat-with-MINIUPNPC-API-Version-18.patch %patch -p1 -i $pkgfiles/fix_python_3.11_ftbfs.patch cp $pkgfiles/mozjs_virtualenv.patch libraries/source/spidermonkey cd build/workspaces sed -i '3,6d' update-workspaces.sh ./update-workspaces.sh \ --bindir=/usr/bin \ --datadir=/usr/share/0ad/data \ --disable-atlas \ --libdir=%libdir%/0ad \ --without-nvtt build : | %make -C build/workspaces/gcc install : | install -dm00644 $installdir/%libdir%/0ad/ install -dm00644 $installdir/usr/share/0ad/data/ install -Dm00755 binaries/system/pyrogenesis $installdir/usr/bin/pyrogenesis install -Dm00755 binaries/system/*.so $installdir/%libdir%/0ad/ cp -R binaries/data/l10n/ $installdir/usr/share/0ad/data/ chmod 00644 $installdir/usr/share/0ad/data/* install -Dm00755 build/resources/0ad.sh $installdir/usr/bin/0ad install -Dm00644 build/resources/0ad.desktop $installdir/usr/share/applications/0ad.desktop install -Dm00644 build/resources/0ad.png $installdir/usr/share/pixmaps/0ad.png install -Dm00644 build/resources/0ad.appdata.xml $installdir/usr/share/metainfo/0ad.appdata.xml