void-packages/srcpkgs/minetest/template

31 lines
1.3 KiB
Bash

# Template file for 'minetest'
pkgname=minetest
version=5.7.0
revision=1
_irrlichtversion=1.9.0mt10
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
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="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://www.minetest.net"
changelog="https://dev.minetest.net/Changelog"
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="0cd0fd48a97f76e337a2e1284599a054f8f92906a84a4ef2122ed321e1b75fa7
0787b24cf7b340a8a2be873ca3744cec60c2683011f1d658350a031d1bd5976d
6d00348d8ff513f6a7cee5c930908ef67428ff637e6a9e4d5688409bdb6d547d"
post_extract() {
mv minetest_game-${version} "${build_wrksrc}/games/minetest_game"
mv irrlicht-${_irrlichtversion} "${build_wrksrc}/lib/irrlichtmt"
}