summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-06 11:06:36 +0100
committerErich Eckner <git@eckner.net>2019-02-06 11:06:36 +0100
commitdfadc64415a044ffe2df2c80360a257b555bd74d (patch)
treeee58fa1adc172204aab5eabc7b719b336b26afe5
parentf105ed7468f135c9b2f55152cb0cb0b94a014e6d (diff)
downloadarchlinuxewe-dfadc64415a044ffe2df2c80360a257b555bd74d.tar.xz
xraylarch: do not copy compiled programs for i686 - they do not exist
-rwxr-xr-xxraylarch/PKGBUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/xraylarch/PKGBUILD b/xraylarch/PKGBUILD
index 5cb002af0..b423fd0c5 100755
--- a/xraylarch/PKGBUILD
+++ b/xraylarch/PKGBUILD
@@ -67,6 +67,18 @@ prepare() {
/subprocess\.check_call/ { N; d; }
' "${pkgname}-${pkgver}/setup.py"
+ if [ "${CARCH}" = 'i686' ]; then
+ sed -i '
+ /^\s*compiled_exes\s*=\s*(/,/)/ {
+ s/(.*/(/
+ t
+ s/.*)/)/
+ t
+ d
+ }
+ ' "${pkgname}-${pkgver}/setup.py"
+ fi
+
}
build() {