void-packages/srcpkgs/minetest/template
Nathan Owens dcf5cc1fcc minetest: update to 5.3.0
Adopt
LuaJIT with aarch64* causes PIE breakage; disable use of
LuaJIT for aarc64* due to CMakeLists.txt setting
2020-11-21 11:29:32 -08:00

34 lines
1.3 KiB
Bash

# Template file for 'minetest'
pkgname=minetest
version=5.3.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="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="Nathan <ndowens@artixlinux.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="65dc2049f24c93fa544500f310a61e289c1b8fa47bf60877b746a2c27a7238d6
06c6c1d4b97af211dd0fa518a3e68a205f594e9816a4b2477e48d4d21d278e2d"
# LuaJIT enabled causes PIE to
# be broken/not-used on aarch64*
case "$XBPS_TARGET_MACHINE" in
aarch64*) ;;
*) makedepends+=" LuaJIT-devel" ;;
esac
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
}