Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/python2/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/python2/PKGBUILD b/extra/python2/PKGBUILD
index 7ff6b97e..65e8d592 100644
--- a/extra/python2/PKGBUILD
+++ b/extra/python2/PKGBUILD
@@ -13,3 +13,38 @@ eval "$(
/xvfb-run/ s/-x test_idle/-x test_idle test_bytes test_str test_string test_unicode test_userstring test_tuple/
'
)"
+
+# i486-specific
+if [ "${CARCH}" = "i486" ]; then
+ # remove dependency on most things, we want only a simple interpreter
+ # a little bit smarter than a shell for building and code generation
+ makedepends=(${makedepends[@]//tk/})
+ makedepends=(${makedepends[@]//bluez-libs/})
+ makedepends=(${makedepends[@]//llvm/})
+
+ # do not start X servers just for building software!
+ checkdepends=(${checkdepends[@]//xorg-server-xvfb/})
+ eval "$(
+ declare -f build | \
+ sed '
+ /export servernum=99/,/done/d
+ s/.*make/make/
+ '
+ )"
+ eval "$(
+ declare -f check | \
+ sed '
+ /export servernum=99/,/done/d
+ s/xvfb-run//
+ '
+ )"
+
+ # ignore even more tests
+ eval "$(
+ declare -f check | \
+ sed '
+ s/-v -uall -x/-v -uall -x test_gdb test_ssl test_urllib2net/
+ '
+ )"
+fi
+