void-packages/srcpkgs/minetest/template
2019-05-27 07:36:31 +02:00

26 lines
1.1 KiB
Bash

# Template file for 'minetest'
pkgname=minetest
version=5.0.1
revision=2
build_style=cmake
configure_args="-DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DBUILD_SERVER=TRUE"
hostmakedepends="pkg-config"
makedepends="LuaJIT-devel MesaLib-devel freetype-devel gmp-devel irrlicht-devel
libcurl-devel libjpeg-turbo-devel libopenal-devel libvorbis-devel lua52-devel
sqlite-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="InfiniMiner/Minecraft inspired game"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://www.minetest.net"
distfiles="https://github.com/minetest/minetest/archive/${version}.tar.gz
https://github.com/minetest/minetest_game/archive/${version}.tar.gz>minetest_game-${version}.tar.gz"
checksum="aa771cf178ad1b436d5723e5d6dd24e42b5d56f1cfe9c930f6426b7f24bb1635
965d2cf3ac8c822bc9e60fb8f508182fb2f24dde46f46b000caf225ebe2ec519"
pre_install() {
# Install the minetest_game subgame.
tar -xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/minetest_game-${version}.tar.gz
vmkdir usr/share/minetest/games/minetest_game
vcopy minetest_game-${version}/* usr/share/minetest/games/minetest_game
}