desktop/unknown-horizons/PKGBUILD
2015-05-01 02:00:02 +00:00

42 lines
1.3 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=2014.1
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')
categories=('games')
options=(!strip)
source=(https://github.com/unknown-horizons/unknown-horizons/releases/download/${pkgver}/unknown-horizons-${pkgver}.tar.xz)
md5sums=('276ed6118eba6af615a286ff2989da6c')
package() {
cd $srcdir/$pkgname
# Workaround for an upstream packaging issue (old language pre-built files are distributed in 2013.2).
#rm -rf content/lang/*
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
}