From f17264ff27b48e563b1a022568d88f2560778195 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 27 Nov 2017 10:11:42 +0100 Subject: core/gcc: drop lib32-gcc-libs and other multilib stuff of gcc --- core/gcc/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 core/gcc/PKGBUILD (limited to 'core/gcc/PKGBUILD') diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD new file mode 100644 index 00000000..ac9bfb99 --- /dev/null +++ b/core/gcc/PKGBUILD @@ -0,0 +1,45 @@ +makedepends=( + $( + printf '%s\n' "${makedepends[@]}" | \ + grep -v '^lib32-glibc\($\|[<>=]\)' + ) +) +pkgname=( + $( + printf '%s\n' "${pkgname[@]}" | \ + grep -vFx 'lib32-gcc-libs' + ) +) +# unset 'package_lib32-gcc-libs' +eval "$( + declare -f prepare | \ + sed ' + \,/s/lib64/lib/, d + ' + declare -f build | \ + sed ' + s/--enable-multilib/--disable-multilib/ + ' + declare -f package_gcc-libs | \ + sed ' + s/\$pkgname-multilib// + s@libsanitizer/{a,l,ub,t}san@libsanitizer/{a,l,ub}san@ + \@/usr/lib32/@ d + ' + declare -f package_gcc | \ + sed ' + s/"lib32-gcc-libs[^"]*"//g + s/$pkgname-multilib// + \,make -C $CHOST/32/,d + s/{,32}// + \, rm .*/lib32/,d + ' +)" +eval "$( + for name in "${pkgname[@]}"; do + declare -f package_${name} | \ + sed ' + s/$pkgname-multilib// + ' + done +)" -- cgit v1.2.3-70-g09d2