aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxming <xmingske@gmail.com>2014-10-17 07:56:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-17 12:21:53 +0000
commit276617c77708f50d68ba9b4c87a866399ddd7250 (patch)
treed3bb90f0501b33f779390584a59092a3aeb52bf2
parent430ab66701adc5886e5aafa615093f1d037d2b1a (diff)
downloadaports-276617c77708f50d68ba9b4c87a866399ddd7250.tar.bz2
aports-276617c77708f50d68ba9b4c87a866399ddd7250.tar.xz
testing/minetest: new aport
Infinite-world block sandbox game and a game engine, inspired by InfiniMiner, Minecraft and the like. http://minetest.net/
-rw-r--r--testing/minetest/APKBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/testing/minetest/APKBUILD b/testing/minetest/APKBUILD
new file mode 100644
index 0000000000..cee6c1643a
--- /dev/null
+++ b/testing/minetest/APKBUILD
@@ -0,0 +1,77 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=minetest
+pkgver=0.4.10
+pkgrel=0
+pkgdesc="An infinite-world block sandbox game and a game engine"
+url="http://minetest.net/"
+arch="all"
+license="LGPL2.1 CCBY-SA3.0"
+depends="$pkgname-common"
+makedepends="sqlite-dev bzip2-dev openssl-dev irrlicht-dev cmake libvorbis-dev
+ libjpeg-turbo-dev libpng-dev openal-soft-dev libogg-dev mesa-dev sqlite-dev
+ luajit-dev hiredis-dev"
+source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/minetest/${pkgname}/tar.gz/${pkgver}
+ "
+subpackages="$pkgname-doc $pkgname-common $pkgname-server"
+
+_builddir="${srcdir}"/${pkgname}-${pkgver}
+
+prepare() {
+ local pf
+ cd "${_builddir}"
+ for pf in $source; do
+ case $pf in
+ *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
+ esac
+ done
+}
+
+build() {
+ mkdir "${_builddir}"/.build_client
+ cd "${_builddir}"/.build_client
+ cmake -DCUSTOM_BINDIR=/usr/bin \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \
+ -DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \
+ -DBUILD_CLIENT=1 \
+ -DBUILD_SERVER=0 \
+ -DENABLE_REDIS=0 \
+ -DRUN_IN_PLACE=0 \
+ ..
+ make || return 1
+ mkdir "${_builddir}"/.build_server
+ cd "${_builddir}"/.build_server
+ cmake -DCUSTOM_BINDIR=/usr/bin \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCUSTOM_DOCDIR="/usr/share/doc/minetest" \
+ -DCUSTOM_SHAREDIR="/usr/share/minetest" \
+ -DBUILD_CLIENT=0 \
+ -DBUILD_SERVER=1 \
+ -DENABLE_REDIS=1 \
+ -DRUN_IN_PLACE=0 \
+ ..
+ make || return 1
+}
+
+common() {
+ arch="noarch"
+ mkdir -p "${subpkgdir}/usr/share/minetest"
+ mv "${pkgdir}/usr/share/minetest/builtin" "${subpkgdir}/usr/share/minetest" || return 1
+ mv "${pkgdir}/usr/share/minetest/games" "${subpkgdir}/usr/share/minetest" || return 1
+}
+
+package() {
+ cd "${_builddir}"/.build_client
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+server(){
+ mkdir -p "${subpkgdir}/usr/bin"
+ cd "${_builddir}"
+ cp bin/minetestserver ${subpkgdir}/usr/bin
+}
+
+md5sums="61bb35c9d5521f1b072bc3c3e634c863 minetest-0.4.10.tar.gz"
+sha256sums="620a2f3c279d337a2ac405ea65a559cc9c87f3d58bb565f9935fe338d003bbf7 minetest-0.4.10.tar.gz"
+sha512sums="882723996b4904b4b9e3653476c2b4a988967600fc2b0897f755dd28d5da2ae5cab45a14fcdf8827c3f2838e952399e1e7d7e264cd26070fef2dbcd33cd1c59a minetest-0.4.10.tar.gz"