26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
# Template file for 'minetest'
|
|
pkgname=minetest
|
|
version=5.1.0
|
|
revision=1
|
|
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="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="ca53975eecf6a39383040658f41d697c8d7f8d5fe9176460f564979c73b53906
|
|
f165fac0081bf4797cf9094282cc25034b2347b3ea94e6bb8d9329c5ee63f41b"
|
|
|
|
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
|
|
}
|