From 4c005470cc33139ff210226fcde74fbfa46258d5 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sat, 22 Oct 2022 08:28:10 +0200 Subject: [PATCH] minetest: use create_wrksrc --- srcpkgs/minetest/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/minetest/template b/srcpkgs/minetest/template index 14c6e1c9550..3fd704d0dd4 100644 --- a/srcpkgs/minetest/template +++ b/srcpkgs/minetest/template @@ -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" }