diff options
author | Chris Oelmueller | 2016-10-03 18:10:55 +0200 |
---|---|---|
committer | Chris Oelmueller | 2016-10-03 18:54:37 +0200 |
commit | 77ae0cfa256ad654d8903923dbb158efec015cc1 (patch) | |
tree | 8ae91db7e9e81c23a5089bba2a5ce99977141ce9 | |
parent | 15310d25654d11718b2c49675eaa96c9839e85df (diff) | |
download | aur-77ae0cfa256ad654d8903923dbb158efec015cc1.tar.gz |
[fife-git] Switch to cmake (was: Scons) (LinuxDonald)
PKGBUILD mostly provided, did test building locally but not in a
particularly thorough way.
Untested:
- cmake in source (without `build/`)
- old SWIG (pre 3) handling
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 7 deletions
@@ -1,14 +1,14 @@ # Generated by mksrcinfo v8 -# Thu Jun 9 18:50:54 UTC 2016 +# Mon Oct 3 16:54:34 UTC 2016 pkgbase = fife-git pkgdesc = The mission of the FIFE project is to create a cross platform game creation framework - pkgver = 0.3.4.r342.g38f435b + pkgver = 0.3.4.r608.gba383ca pkgrel = 1 url = http://www.fifengine.net/ arch = i686 arch = x86_64 license = LGPL - makedepends = scons + makedepends = cmake makedepends = git depends = sdl2 depends = boost @@ -6,12 +6,12 @@ provides=("fife" "fife-svn") conflicts=("fife" "fife-svn") pkgdesc="The mission of the FIFE project is to create a cross platform game creation framework" url="http://www.fifengine.net/" -pkgver=0.3.4.r342.g38f435b +pkgver=0.3.4.r608.gba383ca pkgrel=1 arch=('i686' 'x86_64') license=('LGPL') depends=('sdl2' 'boost' 'sdl2_ttf' 'sdl2_image' 'libvorbis' 'libogg' 'openal' 'swig' 'python2' 'zlib' 'libgl' 'libpng' 'tinyxml' 'fifechan-git') -makedepends=('scons' 'git') +makedepends=('cmake' 'git') source=(git+https://github.com/fifengine/fifengine.git) md5sums=('SKIP') @@ -22,10 +22,17 @@ pkgver() { build() { cd "$srcdir/fifengine" - scons + # [TODO] Due to severe laziness, I have not tested in-source builds yet + [[ -d "build" ]] && rm -r "build" + mkdir -p "build" && cd "build" + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + .. + make } package() { cd "$srcdir/fifengine" - scons install-python --prefix="$pkgdir/usr" --python-prefix="$pkgdir/usr/lib/python2.7/site-packages/" + cd "build" + make DESTDIR=$pkgdir install } |