Commit 1a589ecb authored by Adrián Chaves (Gallaecio)'s avatar Adrián Chaves (Gallaecio) Committed by totte

unknown-horizons: update to 2019.1

parent 392f5039
Pipeline #4534 passed with stages
in 27 minutes and 3 seconds
# Contributions from AUR: https://aur.archlinux.org/packages/fife/
pkgname=fife
pkgver=0.4.1
pkgrel=3
pkgver=0.4.2
pkgrel=1
_githubname=fifengine
pkgdesc="Flexible Isometric Free Engine is a cross platform game creation framework"
arch=(x86_64)
url="http://fifengine.net/"
license=('LGPL')
depends=('boost' 'boost-libs' 'fifechan>=0.1.4' 'libgl' 'libogg' 'libpng' 'libvorbis'
'sdl2' 'sdl2_ttf' 'sdl2_image' 'openal' 'python2' 'tinyxml' 'zlib')
depends=('boost' 'fifechan' 'libvorbis' 'sdl2_ttf' 'openal' 'python3' 'tinyxml' 'glew')
makedepends=('cmake' 'mesa' 'swig')
source=("https://github.com/${_githubname}/${_githubname}/archive/${pkgver}.tar.gz")
md5sums=('6ce5533102c4993b44c3ba8347f4ca93')
sha256sums=('bae3fc591cc2891f7d1b3a656a5d8ad700ecc2e297ad453bf4f1bcbbf82e8cb2')
sha256sums=('e882b55befa36ae2f1a89ada16af0f814a1b78f7cbe6021ec5b1605604cf8ff8')
prepare() {
# use python2
export PYTHON=python2
# use python3
export PYTHON=python3
}
build() {
......@@ -36,5 +34,5 @@ build() {
package() {
cd "${_githubname}-${pkgver}"
cd "build"
make DESTDIR=$pkgdir install
make DESTDIR="$pkgdir" install
}
# Contributions from AUR: https://aur.archlinux.org/packages/fifechan/
pkgname=fifechan
pkgver=0.1.4
pkgver=0.1.5
pkgrel=1
pkgdesc="A C++ GUI library designed for games. It comes with a standard set of 'widgets'."
arch=(any)
url="http://fifengine.github.io/fifechan/"
license=('LGPL2.1')
depends=('sdl2_image' 'allegro4' 'libgl' 'glut')
depends=('sdl2_image' 'glut')
makedepends=('cmake' 'make')
provides=('fifechan-git')
replaces=('fifechan-git')
conflicts=('fifechan-git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fifengine/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('d52833c6c6fdb216f20dc572ad9427d868e1dff58ec1d7f5b0f4d12ea9baef4799399054cead0780fd7dee2eb8c5fdf2c9ccd25965c6522b8bdd12309919a13d')
source=("$pkgname-$pkgver.tar.gz::https://github.com/fifengine/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('713f46ac8310f333c599a17c53e83b43c1e71dc0a631596eae0089877409e48f87fa25ca067734817ca8ddc75ecd7b99ccda227fc29036676a87e441f8aa7d2d')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}/build
make DESTDIR=$pkgdir install
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
}
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Gaute Hope <eg@gaute.vetsj.com>
# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
pkgname=python3-future
pkgver=0.17.1
pkgrel=1
pkgdesc="Clean single-source support for Python 3 and 2"
url="https://python-future.org/"
arch=('any')
license=('MIT')
depends=('python3')
makedepends=('python3-setuptools')
optdepends=('python3-setuptools: futurize and pasteurize scripts')
provides=('futurize' 'pasteurize')
options=('!emptydirs')
source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
sha512sums=('50094c44db81afbfd37ee25e1710ed11ecb2c2d64ad076fb62a2688dd36a9696ab26b0d7989bf1ecb10da251961a0ee6bb37c4dbd115f70384cd8c9a675d0b2d')
build() {
cd "$srcdir"/future-$pkgver
python3 setup.py build
}
package() {
cd future-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
# Contributions from Arch Linux: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unknown-horizons
# Contributions from AUR: https://aur.archlinux.org/packages/unknown-horizons/
pkgname=unknown-horizons
pkgver=2017.2
pkgver=2019.1
pkgrel=1
pkgdesc="2D realtime strategy simulation with an emphasis on economy and city building."
arch=('i686' 'x86_64')
arch=('any')
url="http://www.unknown-horizons.org/"
license=('GPL' 'CCPL')
depends=('fife>=0.4.1' 'python2' 'python2-pillow' 'python2-yaml')
makedepends=('intltool')
depends=('fife' 'python3' 'python3-pillow' 'python3-yaml' 'python3-future')
makedepends=('intltool' 'python3-setuptools')
conflicts=('unknown-horizons-svn' 'unknown-horizons-git')
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
md5sums=('a99c8858f6cce0b560b97ce74518d007')
sha256sums=('4d2d3d1d82b9c5bbe4d49a3ee82eff70b8fec6429eb295e86cd6a381345ad7bb')
source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('87ae37442ee0b80130c7a75c7eeb7c0ef6c50f3e6b2616db32e6381ace5068729ab7086edefc00eefd3b89e85f9a05fb6c4d05f2a2adc46fa928e5c2a29b72db')
# unknown-horizons build system misses a few files if the build step is seperated from the install
# step
build() {
cd "$srcdir/$pkgname-$pkgver"
python3 horizons/engine/generate_atlases.py 2048
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py --quiet install --root="$pkgdir" --optimize=1
cd "$srcdir/$pkgname-$pkgver"
python3 setup.py install --root="$pkgdir/" --optimize=1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment