void-packages/srcpkgs/minetest/template
2020-04-12 10:12:49 +02:00

26 lines
1.1 KiB
Bash

# Template file for 'minetest'
pkgname=minetest
version=5.2.0
revision=1
build_style=cmake
configure_args="-DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DBUILD_SERVER=TRUE"
hostmakedepends="pkg-config tar"
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="Orphaned <orphan@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="4996c7c50a6600d0c7140680d4bd995cb9aae910f216b46373953b49d6b13a5d
0c49fd6e310de1aba2e8cb8ae72efe0e06bb6bc8d7c5efea23bc201b6a80ce94"
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
}