summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWorMzy Tykashi2016-06-18 20:23:07 +0100
committerWorMzy Tykashi2016-06-18 20:23:07 +0100
commit1901b1544f8fa7b6e458261208c2a12960bf4a33 (patch)
tree9e5215724cd2ca8a5cef096b0970f850b565d4ac
downloadaur-1901b1544f8fa7b6e458261208c2a12960bf4a33.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD34
-rw-r--r--freeserf.install11
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..32f23937bbc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = freeserf-git
+ pkgdesc = Opensource Settlers 1 clone (requires original game file)
+ pkgver = 0.1.1_228_g3895cc6
+ pkgrel = 1
+ url = http://jonls.dk/freeserf/
+ install = freeserf.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = sdl2
+ depends = sdl2_mixer
+ source = git+https://github.com/freeserf/freeserf.git
+ md5sums = SKIP
+
+pkgname = freeserf-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b119130c3c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
+pkgname=freeserf-git
+pkgver=0.1.1_228_g3895cc6
+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')
+install=freeserf.install
+source=(git+"https://github.com/freeserf/freeserf.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd freeserf
+ git describe --tags | sed -e 's:^v::' -e 's:-:_:g'
+}
+
+prepare() {
+ cd freeserf
+ ./bootstrap
+}
+
+build() {
+ cd freeserf
+ ./configure --prefix="/usr"
+ make
+}
+
+package() {
+ cd freeserf
+ make DESTDIR="$pkgdir" install
+}
diff --git a/freeserf.install b/freeserf.install
new file mode 100644
index 00000000000..719f5be945b
--- /dev/null
+++ b/freeserf.install
@@ -0,0 +1,11 @@
+post_install() {
+ /usr/bin/printf "-----------------------------------------------\n"
+ /usr/bin/printf " You must place the original game's asset file\n"
+ /usr/bin/printf " (e.g. SPAE.PA, SPAF.PA, SPAD.PA, or SPAU.PA\n"
+ /usr/bin/printf " depending on your version's language)\n"
+ /usr/bin/printf " in one of the following places:\n"
+ /usr/bin/printf " \$HOME/.local/share/freeserf/\n"
+ /usr/bin/printf " /usr/share/freeserf/\n"
+ /usr/bin/printf " /usr/local/share/freeserf/\n"
+ /usr/bin/printf "-----------------------------------------------\n"
+}