35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Template file for 'minetest'
|
|
pkgname=minetest
|
|
version=5.6.0
|
|
revision=1
|
|
_irrlichtversion=1.9.0mt7
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SERVER=TRUE -DVERSION_EXTRA=_${revision}"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="MesaLib-devel freetype-devel gmp-devel libcurl-devel
|
|
libjpeg-turbo-devel libopenal-devel libvorbis-devel lua52-devel
|
|
sqlite-devel libXi-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
|
|
https://github.com/minetest/irrlicht/archive/refs/tags/${_irrlichtversion}.tar.gz"
|
|
checksum="3fdbc0c8d9f6a18c12954ba0caedb548a22f367520f59d079804a21de0347a91
|
|
fd991d42c253db380559c593a2b035f22e07a81f867b5380a2f045e9a4d04c87
|
|
c12cdbd4a852e1e6ebf7ba22789aa057a1a7f2d585dd81a2412a62f57a0e2619"
|
|
|
|
# LuaJIT enabled causes PIE to
|
|
# be broken/not-used on aarch64*
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) ;;
|
|
*) makedepends+=" LuaJIT-devel" ;;
|
|
esac
|
|
|
|
post_extract() {
|
|
mv ../minetest_game-${version} games/minetest_game
|
|
mv ../irrlicht-${_irrlichtversion} lib/irrlichtmt
|
|
}
|