diff options
Diffstat (limited to 'core/gcc/PKGBUILD')
-rw-r--r-- | core/gcc/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
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 +)" |