summaryrefslogtreecommitdiff
path: root/pcr/minetest
diff options
context:
space:
mode:
authorShackra Sislock ext:(%22) <jorgean@lavabit.com>2012-07-20 21:09:11 -0600
committerShackra Sislock ext:(%22) <jorgean@lavabit.com>2012-07-20 21:09:11 -0600
commit87f7586d42d09da78b0599740380d7fbeac35004 (patch)
treee5b4e98ae1e7fe89eb7d29ad8575f09156d900e7 /pcr/minetest
parent73553791b91522a89585ac8fd3c0fbc6a48e95f5 (diff)
Adding ryzom-data, kervala_libsquish and minetest
Diffstat (limited to 'pcr/minetest')
-rw-r--r--pcr/minetest/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/pcr/minetest/PKGBUILD b/pcr/minetest/PKGBUILD
new file mode 100644
index 000000000..8d11e3747
--- /dev/null
+++ b/pcr/minetest/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com>
+pkgname=minetest-git
+pkgver=20120409
+pkgrel=1
+pkgdesc="An Infiniminer/Minecraft inspired game, git version."
+arch=('i686' 'x86_64')
+url="http://celeron.55.lt/~celeron55/minetest/"
+license=('GPL')
+makedepends=('git' 'cmake' 'irrlicht' 'mesa' 'libjpeg' 'bzip2' 'libpng' 'zlib' 'libvorbis')
+depends=('libjpeg' 'bzip2' 'sqlite3' 'libgl' 'libxxf86vm' 'openal')
+conflicts=('minetest' 'minetest-hg')
+
+_srcroot="https://github.com/celeron55/minetest.git"
+_srcname="minetest"
+
+_gameroot="https://github.com/celeron55/minetest_game.git"
+_gamename="minetest_game"
+
+build() {
+ cd "$srcdir"
+
+ msg "Pulling sources..."
+
+ if [ -d $_srcname ] ; then
+ cd $_srcname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_srcroot $_gitname
+ fi
+
+ msg "Pulling game..."
+
+ cd "$srcdir/$_srcname/games/"
+
+ if [ -d $_gamename ] ; then
+ cd $_gamename && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gameroot $_gamename
+ fi
+
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ cd "$srcdir/$_srcname"
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr
+ #install -d -m 755 ${pkgdir}/usr/share/applications
+ #install -d -m 755 ${pkgdir}/usr/share/icons/scalable/apps
+ #install -m 644 ${srcdir}/minetest.svg ${pkgdir}/usr/share/icons/scalable/apps
+ #install -m 644 ${srcdir}/minetest-git.desktop ${pkgdir}/usr/share/applications
+ make DESTDIR=${pkgdir} install
+}