void-packages/srcpkgs/minetest/template

30 lines
1.1 KiB
Bash

# Template file for 'minetest'
pkgname=minetest
version=0.4.16
revision=2
build_style=cmake
configure_args="-DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1"
short_desc="An InfiniMiner/Minecraft inspired game"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://www.minetest.net"
hostmakedepends="pkg-config"
makedepends="
sqlite-devel libcurl-devel lua52-devel libjpeg-turbo-devel libpng-devel
LuaJIT-devel freetype-devel MesaLib-devel libopenal-devel libvorbis-devel
irrlicht-devel gmp-devel"
depends="hicolor-icon-theme desktop-file-utils"
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="
0ef3793de9f569746ea78af7a66fe96ef65400019e5e64a04a5c3fa26a707655
ea914555949b4faccda5e13143cb021d2f9a5fa19abd1f5e4b7b65004cbd2b5a"
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
}