desktop/fife/PKGBUILD

41 lines
1.2 KiB
Bash
Raw Normal View History

2017-06-02 06:36:18 +08:00
# Contributions from AUR: https://aur.archlinux.org/packages/fife/
pkgname=fife
2017-06-02 06:36:18 +08:00
pkgver=0.4.1
pkgrel=1
2017-06-02 06:36:18 +08:00
_githubname=fifengine
pkgdesc="Flexible Isometric Free Engine is a cross platform game creation framework"
2017-06-02 06:36:18 +08:00
arch=(x86_64)
url="http://fifengine.net/"
2017-06-02 06:36:18 +08:00
license=('LGPL')
depends=('boost' 'boost-libs' 'fifechan>=0.1.4' 'libgl' 'libogg' 'libpng' 'libvorbis'
'sdl2' 'sdl2_ttf' 'sdl2_image' 'openal' 'python2' 'tinyxml' 'zlib')
makedepends=('cmake' 'mesa' 'swig')
source=("https://github.com/${_githubname}/${_githubname}/archive/${pkgver}.tar.gz")
md5sums=('6ce5533102c4993b44c3ba8347f4ca93')
sha256sums=('bae3fc591cc2891f7d1b3a656a5d8ad700ecc2e297ad453bf4f1bcbbf82e8cb2')
2017-06-02 06:36:18 +08:00
prepare() {
# use python2
export PYTHON=python2
}
build() {
2017-06-02 06:36:18 +08:00
cd "${_githubname}-${pkgver}"
[[ -d "build" ]] && rm -r "build"
mkdir -p "build" && cd "build"
cmake \
2017-06-02 06:36:18 +08:00
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
make
2017-06-02 06:36:18 +08:00
# If compilation seems to stall at 99% for ages, do not abort!
# While not perfectly convenient, that is to be expected from
# SWIG. Eventually, you'll reach the holy triple-digit land.
}
2017-06-02 06:36:18 +08:00
package() {
2017-06-02 06:36:18 +08:00
cd "${_githubname}-${pkgver}"
cd "build"
make DESTDIR=$pkgdir install
}