PKGBUILD 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# 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
11
pkgver=2013.1
12
pkgrel=3
13 14 15 16 17 18
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')
Giuseppe's avatar
Giuseppe committed
19
categories=('games')
20
options=(!strip)
21 22
source=("https://github.com/unknown-horizons/unknown-horizons/archive/$pkgver.tar.gz")
md5sums=('1302263a3c4158f0d85b26dde1618cdc')
23 24

package() {
25
  cd $srcdir/$pkgname-$pkgver
26

27
  sed -i 's/env python$/env python2/' run_uh.py
28 29 30 31 32 33 34 35 36 37 38

  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
}