diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 31 insertions, 35 deletions
@@ -1,18 +1,19 @@ +# Generated by mksrcinfo v8 +# Fri Jan 27 22:50:51 UTC 2017 pkgbase = fife pkgdesc = Flexible Isometric Free Engine is a cross platform game creation framework - pkgver = 0.3.5 - pkgrel = 3 + pkgver = 0.4.0 + pkgrel = 1 url = http://fifengine.net/ arch = i686 arch = x86_64 - license = GPL - makedepends = scons - makedepends = boost + license = LGPL + makedepends = cmake makedepends = mesa makedepends = swig makedepends = zlib depends = boost-libs - depends = guichan + depends = fifechan depends = libgl depends = libvorbis depends = libxcursor @@ -21,12 +22,9 @@ pkgbase = fife depends = python2 depends = sdl_image depends = sdl_ttf - source = http://downloads.sourceforge.net/project/fife/active/src/fife_0.3.5.tar.gz - source = 0001-Use-proper-bools-necessary-to-work-with-fifechan-HEA.patch::https://github.com/fifengine/fifengine/commit/b87d8f9ff9e3ce1a3b6de513a71f8fe52e0fded2.patch - md5sums = 11ba50b34239535a270d442466632ef7 - md5sums = 58496b4205c1574c586fc0fce8736bad - sha256sums = 1d3c7a19d05ae426af6ccd50a8ba79a71eb6e6f18f0226d1abdaeae7fcf9d3a8 - sha256sums = c7b7cd96a0115ba196b5c38268bb49ec48b40d90f5f5dd3378b3ef9f3d8f40a6 + source = https://github.com/fifengine/fifengine/archive/0.4.0.tar.gz + md5sums = d1bac8339f207b797a2e3dbd85383a66 + sha256sums = babd4c1c6e2f991d2cf61d5746f34a66ca18e1c95782599c95c4382949d3d8f1 pkgname = fife @@ -3,44 +3,42 @@ # Contributor: speps <speps at aur dot archlinux dot org> pkgname=fife -pkgver=0.3.5 -pkgrel=3 +pkgver=0.4.0 +pkgrel=1 +_githubname=fifengine pkgdesc="Flexible Isometric Free Engine is a cross platform game creation framework" arch=(i686 x86_64) url="http://fifengine.net/" license=('LGPL') -depends=('boost-libs' 'guichan' 'libgl' 'libvorbis' 'libxcursor' 'tinyxml' +depends=('boost-libs' 'fifechan' 'libgl' 'libvorbis' 'libxcursor' 'tinyxml' 'openal' 'python2' 'sdl_image' 'sdl_ttf') -makedepends=('scons' 'boost' 'mesa' 'swig' 'zlib') -source=("http://downloads.sourceforge.net/project/$pkgname/active/src/${pkgname}_$pkgver.tar.gz" "0001-Use-proper-bools-necessary-to-work-with-fifechan-HEA.patch::https://github.com/fifengine/fifengine/commit/b87d8f9ff9e3ce1a3b6de513a71f8fe52e0fded2.patch") -md5sums=('11ba50b34239535a270d442466632ef7' - '58496b4205c1574c586fc0fce8736bad') -sha256sums=('1d3c7a19d05ae426af6ccd50a8ba79a71eb6e6f18f0226d1abdaeae7fcf9d3a8' - 'c7b7cd96a0115ba196b5c38268bb49ec48b40d90f5f5dd3378b3ef9f3d8f40a6') +makedepends=('cmake' 'mesa' 'swig' 'zlib') +source=("https://github.com/${_githubname}/${_githubname}/archive/${pkgver}.tar.gz") +md5sums=('d1bac8339f207b797a2e3dbd85383a66') +sha256sums=('babd4c1c6e2f991d2cf61d5746f34a66ca18e1c95782599c95c4382949d3d8f1') prepare() { - cd "${pkgname}_$pkgver" - # use python2 export PYTHON=python2 - - # strip ldconfig - sed -i "/LD_RUN_PATH/d" build/linux2-config.py } build() { - cd "${pkgname}_$pkgver" - scons --prefix=/usr fife -} - -prepare() { - cd "${pkgname}_$pkgver" - patch -p1 < "$srcdir/0001-Use-proper-bools-necessary-to-work-with-fifechan-HEA.patch" + cd "${_githubname}-${pkgver}" + [[ -d "build" ]] && rm -r "build" + mkdir -p "build" && cd "build" + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + .. + make + # 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. } package() { - cd "${pkgname}_$pkgver" - scons --prefix=/usr DESTDIR="$pkgdir/" install-all + cd "${_githubname}-${pkgver}" + cd "build" + make DESTDIR=$pkgdir install } # vim:set ts=2 sw=2 et: |