summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWorMzy Tykashi2017-08-17 10:34:41 +0100
committerWorMzy Tykashi2017-08-17 10:34:41 +0100
commit64c50e7c01c468406b00fcee407e42e9bb16f2e7 (patch)
treed2804bfffc3386a3bffc376158403079e7463da3
parentf7f8cc5db697355949bd5d637811cd88da245b7c (diff)
downloadaur-64c50e7c01c468406b00fcee407e42e9bb16f2e7.tar.gz
Update for Cmake build system
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
2 files changed, 12 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 78c786a64a8..78f71b1f92b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = freeserf-git
pkgdesc = Opensource Settlers 1 clone (requires original game file)
- pkgver = 0.2_rc1_217_gfc492f4
+ pkgver = 0.2_rc1_318_g6f61d1e
pkgrel = 1
url = http://jonls.dk/freeserf/
install = freeserf.install
@@ -8,7 +8,7 @@ pkgbase = freeserf-git
arch = x86_64
license = GPL3
makedepends = git
- makedepends = autoconf-archive
+ makedepends = cmake
depends = sdl2
depends = sdl2_mixer
source = git+https://github.com/freeserf/freeserf.git
diff --git a/PKGBUILD b/PKGBUILD
index 3c3b37ba054..932c2928a3b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=freeserf-git
-pkgver=0.2_rc1_217_gfc492f4
+pkgver=0.2_rc1_318_g6f61d1e
pkgrel=1
pkgdesc="Opensource Settlers 1 clone (requires original game file)"
arch=('i686' 'x86_64')
url="http://jonls.dk/freeserf/"
license=('GPL3')
-depends=('sdl2' 'sdl2_mixer')
-makedepends=('git' 'autoconf-archive')
+depends=('sdl2' 'sdl2_mixer') # Add libxmp to array for amiga audio playback
+makedepends=('git' 'cmake')
install=freeserf.install
source=(git+"https://github.com/freeserf/freeserf.git")
md5sums=('SKIP')
@@ -18,17 +18,17 @@ pkgver() {
}
prepare() {
- cd freeserf
- ./bootstrap
+ mkdir freeserf/build
}
-
+
build() {
- cd freeserf
- ./configure --prefix="/usr"
+ cd freeserf/build
+ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/usr" ..
make
}
package() {
- cd freeserf
- make DESTDIR="$pkgdir" install
+ cd freeserf/build
+ # CMake install is currently broken (as of 0.2_rc1_318_g6f61d1e) install manually...
+ install -Dm755 src/FreeSerf "$pkgdir/usr/bin/freeserf"
}