desktop/unknown-horizons/PKGBUILD
2011-11-22 20:59:38 +00:00

37 lines
1.1 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Contributor: Biginoz <biginoz _at_ free point fr>
# Contributor: andy123 < ajs AT online DOT de >
# Contributor: Deather <deather.jeuxlinux@gmail.com>
# Contributor: Ronan Rabouin <darkbaboon@gmail.com>
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=unknown-horizons
pkgver=2011.3
pkgrel=1
pyver=2.7
pkgdesc="A 2D realtime strategy simulation with an emphasis on economy and city building"
arch=('i686' 'x86_64')
url="http://www.unknown-horizons.org/"
license=('GPL' 'CCPL')
depends=('python2' 'python2-yaml' 'fife' 'python-distutils-extra')
source=("http://downloads.sourceforge.net/project/unknownhorizons/Unknown%20Horizons/${pkgver}/${pkgname}-${pkgver}-source.tar.bz2")
md5sums=('0939357f9681c056cda7b161a4f17098')
package() {
cd $srcdir
sed -i 's/env python/env python2/' run_uh.py
python2 setup.py build_i18n
python2 setup.py install \
--home=$pkgdir/usr \
--optimize=1
mkdir -p $pkgdir/usr/lib/python$pyver/site-packages/
mv $pkgdir/usr/lib/python/* $pkgdir/usr/lib/python$pyver/site-packages/
rm -rf $pkgdir/usr/lib/python
}