summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD52
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c8f75f8a653
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = keeperrl-git
+ pkgdesc = Dungeon Keeper and Dwarf Fortress inspired dungeon simulator built on top of roguelike mechanics.
+ pkgver = r801
+ pkgrel = 1
+ url = http://keeperrl.com/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = ctags
+ makedepends = boost
+ depends = sfml
+ depends = freeglut
+ conflicts = keeperrl
+ source = keeperrl-git::git://github.com/miki151/keeperrl#branch=master
+ md5sums = SKIP
+
+pkgname = keeperrl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9308384779c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# -*- shell-script -*-
+# Contributor: Fernando Carmona Varo <ferkiwi @t gmail dot com>
+pkgname=keeperrl-git
+pkgver=r801
+pkgrel=1
+pkgdesc="Dungeon Keeper and Dwarf Fortress inspired dungeon simulator built on top of roguelike mechanics."
+arch=('i686' 'x86_64')
+url="http://keeperrl.com/"
+groups=()
+license=('GPL')
+conflicts=('keeperrl')
+#depends=('sfml' 'freeglut' 'angelscript')
+depends=('sfml' 'freeglut')
+makedepends=('git' 'ctags' 'boost')
+checkdepends=()
+optdepends=()
+backup=()
+options=()
+install=
+changelog=
+source=("$pkgname"::'git://github.com/miki151/keeperrl#branch=master')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${pkgname}
+ printf "r%s" $(git rev-list --count HEAD)
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ local instdir="/opt/keeperrl"
+
+ install -dm775 -g games "$pkgdir/$instdir"
+ install -Dm755 keeper "$pkgdir/$instdir/"
+ cp -a data* "$pkgdir/$instdir/"
+
+ install -dm755 "$pkgdir/usr/bin"
+ cat >"$pkgdir/usr/bin/keeperrl" <<EOF
+#!/bin/sh
+cd $instdir/
+exec ./keeper "\$@"
+EOF
+ chmod 755 "$pkgdir/usr/bin/keeperrl"
+}
+