Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/gcc/PKGBUILD')
-rw-r--r--core/gcc/PKGBUILD33
1 files changed, 15 insertions, 18 deletions
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD
index 73360a5e..fecb7d16 100644
--- a/core/gcc/PKGBUILD
+++ b/core/gcc/PKGBUILD
@@ -14,6 +14,7 @@ eval "$(
declare -f build | \
sed '
s/--enable-multilib/--disable-multilib/
+ s,--with-bugurl=https://bugs\.archlinux\.org/,--with-bugurl=https://bugs.archlinux32.org/,
'
declare -f package_gcc-libs | \
sed '
@@ -47,19 +48,13 @@ eval "$(
done
)"
-# fix bug url
-eval "$(
- declare -f build | \
- sed '
- s,--with-bugurl=https://bugs.archlinux.org/,--with-bugurl=https://bugs.archlinux32.org/,
- '
-)"
-
# i486-specific
-if [ "${CARCH}" = "i486" ]; then
- # disable doxygen documentation
- makedepends=(${makedepends[@]//doxygen/})
+# disable doxygen documentation
+makedepends=(${makedepends[@]//doxygen/})
+makedepends_i686+=('doxygen')
+
+if [ "${CARCH}" = "i486" ]; then
eval "$(
declare -f build | \
sed '
@@ -74,11 +69,16 @@ if [ "${CARCH}" = "i486" ]; then
/make.*doc-install-man/d
'
)"
+fi
- # no ADA
- makedepends=(${makedepends[@]//gcc-ada/})
+# no ADA
+makedepends=(${makedepends[@]//gcc-ada/})
+makedepends_i686+=('gcc-ada')
- pkgname=(${pkgname[@]//gcc-ada/})
+if [ "${CARCH}" = "i486" ]; then
+ package_gcc-ada() {
+ touch "$pkgdir/this-is-a-dummy-package"
+ }
eval "$(
declare -f build | \
@@ -114,8 +114,5 @@ if [ "${CARCH}" = "i486" ]; then
s/--enable-cet=auto/--disable-cet/
'
)"
-
-fi
-
-
+fi