Added UFO: Alien Invasion.

parent 15ed04ac
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=ufoai-data
pkgver=2.4
pkgrel=1
pkgdesc="In UFO: Alien Invasion you fight aliens trying to capture Earth (data files)"
arch=('any')
url="http://ufoai.ninex.info/"
license=('GPL2' 'CCPL-by-sa' 'custom:Other free licenses.')
source=(http://downloads.sourceforge.net/sourceforge/ufoai/ufoai-$pkgver-data.tar)
md5sums=('4f3f343754a4aae401582021901c4737')
package() {
install -d -m755 "$pkgdir"/usr/share/ufoai
cp -r "$srcdir"/base "$pkgdir"/usr/share/ufoai
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=ufoai
pkgver=2.4
pkgrel=1
pkgdesc="In UFO: Alien Invasion you fight aliens trying to capture Earth"
arch=('i686' 'x86_64')
url="http://ufoai.ninex.info/"
license=('GPL2')
depends=('libjpeg' 'libgl' 'libpng' 'curl' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'xvidcore' 'ufoai-data')
makedepends=('mesa')
source=(http://downloads.sourceforge.net/project/ufoai/UFO_AI%202.x/$pkgver/ufoai-$pkgver-source.tar.bz2)
md5sums=('d7e88aee0ea94149c8b9d90eb6c21ba9')
build() {
cd "$srcdir"/$pkgname-$pkgver-source
./configure \
--prefix=/usr \
--datadir=/usr/share/ufoai \
--enable-release \
--localedir=/usr/share/ufoai/base/i18n/
make
make lang
}
package() {
cd "$srcdir"/$pkgname-$pkgver-source
install -Dm755 ufo "$pkgdir"/usr/bin/ufo
install -Dm755 ufoded "$pkgdir"/usr/bin/ufoded
install -Dm755 ufo2map "$pkgdir"/usr/bin/ufo2map
install -Dm755 ufomodel "$pkgdir"/usr/bin/ufomodel
mkdir -p "$pkgdir"/usr/share/ufoai
cp -r base "$pkgdir"/usr/share/ufoai/
install -Dm644 debian/ufoai.desktop "$pkgdir"/usr/share/applications/ufoai.desktop
install -Dm644 debian/ufoai-safe.desktop "$pkgdir"/usr/share/applications/ufoai-safe.desktop
install -Dm644 debian/ufoded.desktop "$pkgdir"/usr/share/applications/ufoded.desktop
sed -i 's|/usr/games/||' "$pkgdir"/usr/share/applications/*
install -Dm644 debian/ufoai.xpm "$pkgdir"/usr/share/pixmaps/ufoai.xpm
install -Dm644 debian/ufoded.xpm "$pkgdir"/usr/share/pixmaps/ufoded.xpm
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment