# Compiling Time: 0.89 SBU # Maintainer: DeX77 # Contributor: Christian Hamar alias krix pkgname=ufoai pkgver=2.5 pkgrel=2 pkgdesc="UFO: ALIEN INVASION is a squad-based tactical strategy game in the tradition of the old X-COM PC games, but with a twist." depends=('libpng>=1.6.20' 'libjpeg>=9b' 'curl>=7.46.0-3' 'sdl_ttf>=2.0.11-2' \ 'sdl_mixer>=1.2.12-2' 'libgl>=11.1.1' 'libtheora>=1.1.1-4' 'xvidcore>=1.3.4-2' 'libglu>=9.0.0-2') makedepends=('zip' 'x11-protos') groups=('games-extra') options=('nobuild' 'static') archs=('i686' 'x86_64') _F_sourceforge_ext="-source.tar.bz2" pkgverschema="2.x" Finclude sourceforge url="http://ufoai.ninex.info/" Fconfopts="--enable-release --disable-uforadiant" source=($source \ http://downloads.sourceforge.net/sourceforge/ufoai/ufoai-$pkgver-data.tar \ http://mattn.ninex.info/1maps.pk3) sha1sums=('c2843853a5584bcc609682690e839eea01c8ff02' \ '53772c16206c86c8b7dfdf92348ca42a8f9ed623' \ 'b18baa412a1c372dd8b78b525a09d886a61b11c3') build() { Fmkdir usr/share/$pkgname # Note: We can make the .pk3 but we will prefer to use # the prebuilt because of packaging time Fcd $pkgname-$pkgver-source # create the base dir if we do not want an error mkdir base Fbuild # Copy pk3 data files Fcp base usr/share/$pkgname/ # Install .desktop files Finstallrel 644 debian/ufoai.desktop usr/share/applications/ufoai.desktop Finstallrel 644 debian/ufoai-safe.desktop usr/share/applications/ufoai-safe.desktop Finstallrel 644 debian/ufoded.desktop usr/share/applications/ufoded.desktop sed -i 's|/usr/games/||' "$Fdestdir"/usr/share/applications/* || Fdie # Install icons Ficonrel debian/ufoai.xpm Ficonrel debian/ufoded.xpm } # optimization OK