summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-07-20 10:26:40 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-07-20 10:26:40 +0000
commit56c9b99dc6be9d5191b706a7e84c4a629d8e499d (patch)
treea6d5f912003942f81e125fca5637b6d646018e47
parent7660ec97be7b6d55fc60bb65e079c7511de83886 (diff)
downloadpackages-56c9b99dc6be9d5191b706a7e84c4a629d8e499d.tar.xz
extra/python: added i486-specific patch
-rw-r--r--extra/python/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD
new file mode 100644
index 00000000..380fd779
--- /dev/null
+++ b/extra/python/PKGBUILD
@@ -0,0 +1,25 @@
+# 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!
+ makedepends=(${makedepends[@]//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 -s "-screen 0 1280x720x24 -ac +extension GLX" -a -n "$servernum"//
+ '
+ )"
+fi