desktop/ufoai/PKGBUILD

59 lines
2.0 KiB
Bash
Raw Normal View History

2012-07-10 05:50:51 +08:00
#
# 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
2014-07-08 03:55:28 +08:00
pkgver=2.5
pkgrel=1
2012-07-10 05:50:51 +08:00
pkgdesc="In UFO: Alien Invasion you fight aliens trying to capture Earth"
2013-07-08 23:43:57 +08:00
arch=('x86_64')
2012-07-10 05:50:51 +08:00
url="http://ufoai.ninex.info/"
license=('GPL2')
depends=('libjpeg' 'libgl' 'libpng' 'curl' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'xvidcore' 'ufoai-data')
makedepends=('mesa')
2014-07-08 03:55:28 +08:00
source=("http://downloads.sourceforge.net/project/ufoai/UFO_AI%202.x/${pkgver}/ufoai-${pkgver}-source.tar.bz2"
"ufo.sh")
sha256sums=('0c7cc3bc9efeb276f71cbe6ee8ff7c76f98d183de79f1a069fa63059cf182a8f'
'9e444eb936bad1f131c20cac7107dbf34fbbe66741a2cc8d35af5069ec9d5dcb')
2012-07-10 05:50:51 +08:00
build() {
2014-07-08 03:55:28 +08:00
cd ${pkgname}-${pkgver}-source
2012-07-10 05:50:51 +08:00
./configure \
--prefix=/usr \
2014-07-08 03:55:28 +08:00
--bindir=/usr/bin \
2012-07-10 05:50:51 +08:00
--datadir=/usr/share/ufoai \
--enable-release \
--localedir=/usr/share/ufoai/base/i18n/
make
make lang
}
package() {
2014-07-08 03:55:28 +08:00
cd ${pkgname}-${pkgver}-source
2012-07-10 05:50:51 +08:00
2014-07-08 03:55:28 +08:00
install -Dm755 ufo "${pkgdir}"/usr/share/ufoai/ufo
install -Dm755 ufoded "${pkgdir}"/usr/share/ufoai/ufoded
install -Dm755 ufo2map "${pkgdir}"/usr/share/ufoai/ufo2map
install -Dm755 ufomodel "${pkgdir}"/usr/share/ufoai/ufomodel
2013-07-08 23:43:57 +08:00
2014-07-08 03:55:28 +08:00
install -Dm755 "${srcdir}"/ufo.sh "${pkgdir}"/usr/bin/ufo
2013-07-08 23:43:57 +08:00
ln -s /usr/share/ufoai/ufoded "${pkgdir}"/usr/bin/
ln -s /usr/share/ufoai/ufo2map "${pkgdir}"/usr/bin/
ln -s /usr/share/ufoai/ufomodel "${pkgdir}"/usr/bin/
2012-07-10 05:50:51 +08:00
2014-07-08 03:55:28 +08:00
cp -r base "${pkgdir}"/usr/share/ufoai/
2012-07-10 05:50:51 +08:00
2014-07-08 03:55:28 +08:00
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
2012-07-10 05:50:51 +08:00
2014-07-08 03:55:28 +08:00
sed -i 's|/usr/games/||' "${pkgdir}"/usr/share/applications/*
2012-07-10 05:50:51 +08:00
2014-07-08 03:55:28 +08:00
install -Dm644 debian/ufoai.xpm "${pkgdir}"/usr/share/pixmaps/ufoai.xpm
install -Dm644 debian/ufoded.xpm "${pkgdir}"/usr/share/pixmaps/ufoded.xpm
2012-07-10 05:50:51 +08:00
}