From f27af5ead386f1ecd1a8c74180f3f844f1dba8b9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 3 Aug 2018 14:36:50 +0000 Subject: i486-specific patches for python modules --- extra/python-pyparsing/PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 extra/python-pyparsing/PKGBUILD (limited to 'extra/python-pyparsing/PKGBUILD') 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 + + + -- cgit v1.2.3-70-g09d2