Commit 276617c7 authored by xming's avatar xming Committed by Natanael Copa

testing/minetest: new aport

Infinite-world block sandbox game and a game engine, inspired by InfiniMiner, Minecraft and the like.
http://minetest.net/
parent 430ab667
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment