desktop/unknown-horizons/PKGBUILD
Adrián Chaves Fernández (Gallaecio) 84e8ecd094 unknown-horizons: fixed
The latest stable version of fife is not compatible with the 3.x
branch of swig, the one that we have in our core repository.

I have switched to fife-git, which does support swig 3.x.
2016-06-25 10:02:42 +02:00

28 lines
1.1 KiB
Bash

# Forked from https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=unknown-horizons
pkgname=unknown-horizons
pkgver=2014.1
pkgrel=3
pkgdesc="2D realtime strategy simulation with an emphasis on economy and city building."
arch=('x86_64')
url="http://www.unknown-horizons.org/"
license=('GPL' 'CCPL')
depends=('fife-git' 'python2' 'python2-pillow' 'python2-yaml')
makedepends=('intltool')
conflicts=('unknown-horizons-svn' 'unknown-horizons-git')
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"
"fix-atlas-overlays.diff::https://github.com/unknown-horizons/unknown-horizons/commit/405c514eab9e2abffe8d1a8912646447e6a29cfa.patch")
sha256sums=('5f9dd483e81ad89bff1bc46739349ab531cc930830bf17ef390ac239940a236b'
'e051fb7555d9478e06ee278856b27d1e0ef94cf88db9babdf0f903e5df03ef6f')
prepare() {
cd "$srcdir/$pkgname"
# Fix crash with color overlays if using atlases (the default)
patch -p1 -i "${srcdir}/fix-atlas-overlays.diff"
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py --quiet install --root="$pkgdir" --optimize=1
}