From 574196044167c7534c0593ec96ecb01c68426f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:18 +0700 Subject: [PATCH] tracebox: use create-wrksrc --- srcpkgs/tracebox/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/tracebox/template b/srcpkgs/tracebox/template index 5cf656b5064..ca571307226 100644 --- a/srcpkgs/tracebox/template +++ b/srcpkgs/tracebox/template @@ -5,6 +5,7 @@ revision=5 _click_ver=2.0.1 _crafter_git=3db70ab6fd62ade25de7328aaf8e9ba92696c92e _crafter_ver=0.3.3git +create_wrksrc=yes archs="i686 x86_64" build_style=gnu-configure hostmakedepends="automake pkg-config libtool unzip" @@ -26,11 +27,12 @@ nocross=yes CXXFLAGS="-DHAVE_LUA_PUSHGLOBALTABLE=1" pre_configure() { + mv tracebox-${version}/* . # Do what ./bootstrap.sh would have done but without using git to pull submodules mkdir -p ${wrksrc}/test/tools ${wrksrc}/noinst/libcrafter - mv -v ../click-${_click_ver} test/tools/click - mv -v ../libcrafter-${_crafter_git}/{.gitignore,README,libcrafter} noinst/libcrafter - rmdir -v ../libcrafter-${_crafter_git} + mv -v click-${_click_ver} test/tools/click + mv -v libcrafter-${_crafter_git}/{.gitignore,README,libcrafter} noinst/libcrafter + rmdir -v libcrafter-${_crafter_git} # Set missing AM_PROG_AR sed -e "/AC_PROG_CXX/iAM_PROG_AR=${AR}" -i noinst/libcrafter/libcrafter/configure.ac autoreconf --force --install --verbose