diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-03 14:36:50 +0000 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-03 14:36:50 +0000 |
commit | f27af5ead386f1ecd1a8c74180f3f844f1dba8b9 (patch) | |
tree | 6d245cd74e8286f8edfa98e86b7ddee9d9c7061a /extra/python-pyparsing/PKGBUILD | |
parent | 043f74201967addd0353517fa10251975f7c723f (diff) | |
download | packages-f27af5ead386f1ecd1a8c74180f3f844f1dba8b9.tar.xz |
i486-specific patches for python modules
Diffstat (limited to 'extra/python-pyparsing/PKGBUILD')
-rw-r--r-- | extra/python-pyparsing/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/extra/python-pyparsing/PKGBUILD b/extra/python-pyparsing/PKGBUILD new file mode 100644 index 00000000..7f88e0ac --- /dev/null +++ b/extra/python-pyparsing/PKGBUILD @@ -0,0 +1,51 @@ +# i486-specific +if [ "${CARCH}" = "i486" ]; then + # subversion introduces a crazy amount of build dependencies, take + # official tarball + makedepends=(${makedepends[@]//subversion/}) + source=('https://pypi.python.org/packages/3c/ec/a94f8cf7274ea60b5413df054f82a8980523efd712ec55a59e7c3357cf7c/pyparsing-2.2.0.tar.gz') + + eval "$( + declare -f prepare | \ + sed ' + s/pyparsing_$pkgver/pyparsing-$pkgver/g + s,pyparsing-$pkgver/src,pyparsing-$pkgver,g + s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g + /sed/d + ' + )" + + eval "$( + declare -f build | \ + sed ' + s/pyparsing_$pkgver/pyparsing-$pkgver/g + s,pyparsing-$pkgver/src,pyparsing-$pkgver,g + s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g + ' + )" + + eval "$( + declare -f package_python-pyparsing | \ + sed ' + s/pyparsing_$pkgver/pyparsing-$pkgver/g + s,pyparsing-$pkgver/src,pyparsing-$pkgver,g + ' + )" + + eval "$( + declare -f package_python2-pyparsing | \ + sed ' + s/pyparsing_$pkgver/pyparsing-$pkgver/g + s,pyparsing-$pkgver-py2/src,pyparsing-$pkgver-py2,g + ' + )" + + # needed? + # remove a really weird sed + #sed -i 's/sed/#sed/g' PKGBUILD + + unset check +fi + + + |