From 23d8de91b580a16397eb5afc69a9c87522e8336f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 19 Sep 2021 23:18:09 +0700 Subject: [PATCH] gcc6: use create_wrksrc --- srcpkgs/gcc6/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template index e5f7e0ddc6a..98d46a4126e 100644 --- a/srcpkgs/gcc6/template +++ b/srcpkgs/gcc6/template @@ -6,7 +6,7 @@ version=6.5.0 revision=1 _majorver="${version%%.*}" _minorver="${version%.*}" -wrksrc=gcc-${version} +create_wrksrc=yes hostmakedepends="automake libtool perl flex texinfo zip unzip" makedepends="gmp-devel mpfr-devel libmpc-devel zlib-devel" depends="binutils" @@ -61,8 +61,8 @@ case "$XBPS_TARGET_MACHINE" in esac post_extract() { - mkdir -p ${wrksrc}/isl - cp -ar ${XBPS_BUILDDIR}/isl-${_isl_version}/* ${wrksrc}/isl/ + mv gcc-${version}/* . + mv isl-${_isl_version} isl # https://gcc.gnu.org/ml/java/2008-04/msg00027.html cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/ecj-*.jar ${wrksrc}/ecj.jar }