summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Oelmueller2017-01-27 23:51:09 +0100
committerChris Oelmueller2017-01-27 23:54:50 +0100
commit2ea6990fd10ea8523cec2b55c77e4dc62c91088a (patch)
tree16112eb8ab730b9c553a8c68dc104d337a1e486d
parent83414f309d0f3627e251c207977c2c2d43cfa3c6 (diff)
downloadaur-2ea6990fd10ea8523cec2b55c77e4dc62c91088a.tar.gz
[fife] v0.4.0: cmake, fifechan, github sources, correct license
Include a motivational comment to prevent folks from quitting at "almost there".
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD44
2 files changed, 31 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 75b6cbd2e60..6605537b758 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index f473d0638ac..31c595ef0b1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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: