minetest: use create_wrksrc

This commit is contained in:
Marcin Puc 2022-10-22 08:28:10 +02:00 committed by Michal Vasilek
parent c59d0f46dd
commit 4c005470cc
1 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ pkgname=minetest
version=5.6.1
revision=1
_irrlichtversion=1.9.0mt8
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=cmake
configure_args="-DBUILD_SERVER=TRUE -DVERSION_EXTRA=_${revision}"
hostmakedepends="pkg-config gettext"
@ -30,6 +32,6 @@ case "$XBPS_TARGET_MACHINE" in
esac
post_extract() {
mv ../minetest_game-${version} games/minetest_game
mv ../irrlicht-${_irrlichtversion} lib/irrlichtmt
mv minetest_game-${version} "${build_wrksrc}/games/minetest_game"
mv irrlicht-${_irrlichtversion} "${build_wrksrc}/lib/irrlichtmt"
}