From 82374829ab2d9abad76fafe1d960ea0205621d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 24 Oct 2022 12:28:36 +0700 Subject: [PATCH] barrier: use create_wrksrc --- srcpkgs/barrier/template | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/barrier/template b/srcpkgs/barrier/template index 79a4351077d..7a71348ccd8 100644 --- a/srcpkgs/barrier/template +++ b/srcpkgs/barrier/template @@ -2,6 +2,7 @@ pkgname=barrier version=2.4.0 revision=1 +create_wrksrc=yes build_style=cmake configure_args="-DBARRIER_REVISION=00000000 -DBARRIER_VERSION_STAGE=RELEASE" hostmakedepends="pkg-config qt5-qmake qt5-host-tools" @@ -20,15 +21,17 @@ checksum="b44b5d37b62e7e54887f07f9862e7dce537aa9922e80995007bcffe6ab9058d4 a0311bf91e6b4a7dbeb40be076d4b8e28f54f5034c9b9c5ce3ccd55c9b7a8819 20046cae7a831d9bb3740b6f04feb9bded4c794c11586a70089080e94ae2fe77" -pre_configure() { +post_extract() { + mv barrier-$version/* barrier-$version/.??* . + rmdir barrier-$version # move submodule to proper location rmdir ext/gmock rmdir ext/gtest rmdir ext/gulrak-filesystem - mv -v ../googletest-${_gtest_commit}/googlemock ext/gmock - mv -v ../googletest-${_gtest_commit}/googletest ext/gtest - mv -v ../filesystem-${_ghc_commit}/include/ghc src/lib/ghc + mv -v googletest-${_gtest_commit}/googlemock ext/gmock + mv -v googletest-${_gtest_commit}/googletest ext/gtest + mv -v filesystem-${_ghc_commit}/include/ghc src/lib/ghc } do_check() {