mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
39 lines
1.2 KiB
Bash
39 lines
1.2 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=2012.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=("http://downloads.sourceforge.net/project/unknownhorizons/Unknown%20Horizons/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
|
md5sums=('003a24598fb55d8aee07db9488c02008')
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname
|
|
|
|
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
|
|
}
|