diff options
Diffstat (limited to 'extra/python-pyparsing/PKGBUILD')
-rw-r--r-- | extra/python-pyparsing/PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/extra/python-pyparsing/PKGBUILD b/extra/python-pyparsing/PKGBUILD new file mode 100644 index 00000000..e9913b6a --- /dev/null +++ b/extra/python-pyparsing/PKGBUILD @@ -0,0 +1,54 @@ +# i486-specific +if [ "${CARCH}" = "i486" ]; then + + makedepends+=('python-pip-bootstrap' 'python2-pip-bootstrap') + + # 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 + + + |