index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-11-27 10:11:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-27 10:11:42 +0100 |
commit | f17264ff27b48e563b1a022568d88f2560778195 (patch) | |
tree | c359d9abdb95646158bc15e1caae92901541c49e /core/gcc/PKGBUILD | |
parent | 403e0bf1dc6abbedb69d7fcb66523c6703c6aa56 (diff) |
-rw-r--r-- | core/gcc/PKGBUILD | 45 |
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 +)" |