summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-27 10:11:42 +0100
committerErich Eckner <git@eckner.net>2017-11-27 10:11:42 +0100
commitf17264ff27b48e563b1a022568d88f2560778195 (patch)
treec359d9abdb95646158bc15e1caae92901541c49e /core
parent403e0bf1dc6abbedb69d7fcb66523c6703c6aa56 (diff)
downloadpackages-f17264ff27b48e563b1a022568d88f2560778195.tar.xz
core/gcc: drop lib32-gcc-libs and other multilib stuff of gcc
Diffstat (limited to 'core')
-rw-r--r--core/gcc/PKGBUILD45
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
+)"