diff options
Diffstat (limited to 'extra/python-egenix-mx-base/PKGBUILD')
-rw-r--r-- | extra/python-egenix-mx-base/PKGBUILD | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/extra/python-egenix-mx-base/PKGBUILD b/extra/python-egenix-mx-base/PKGBUILD index f478e09b7..b0f59d673 100644 --- a/extra/python-egenix-mx-base/PKGBUILD +++ b/extra/python-egenix-mx-base/PKGBUILD @@ -1,11 +1,10 @@ -# $Id: PKGBUILD 174964 2013-01-09 16:03:42Z stephane $ +# $Id: PKGBUILD 192252 2013-08-08 18:04:12Z eric $ # Maintainer: Stéphane Gaudreault <stephane@archlinux.org> # Contributor: Douglas Soares de Andrade <douglas@archlinux.org> pkgbase=python-egenix-mx-base pkgname=('python2-egenix-mx-base') -_origname=egenix-mx-base -pkgver=3.2.5 +pkgver=3.2.6 pkgrel=1 pkgdesc="A collection of Python tools" arch=('i686' 'x86_64' 'mips64el') @@ -14,20 +13,25 @@ url="http://www.egenix.com/products/python/mxBase/" makedepends=('python2') conflicts=('python-egenix-mx-base<=3.2.4-1') replaces=('python-egenix-mx-base<=3.2.4-1') -source=("http://downloads.egenix.com/python/${_origname}-${pkgver}.tar.gz") -sha1sums=('d64607ff3bdd0c908f1f4ce39d458514135c9a86') - -build() { - cd "${srcdir}/${_origname}-${pkgver}" +source=(http://downloads.egenix.com/python/egenix-mx-base-${pkgver}.tar.gz{,.asc}) +sha1sums=('3e21c6eba53a841070a4e9430a85ecf8a28df20f' + 'SKIP') +prepare() { + cd egenix-mx-base-${pkgver} find . -name \*.py -exec sed -i -e "s|^#!.*python|#!/usr/bin/python2|" {} \; +} +build() { + cd egenix-mx-base-${pkgver} python2 setup.py build } package_python2-egenix-mx-base() { - depends=('python2>=2.7') - cd "${srcdir}/${_origname}-${pkgver}" + depends=('python2') + + cd egenix-mx-base-${pkgver} python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1 - install -D -m644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + chmod 644 "${pkgdir}"/usr/lib/python2.7/site-packages/mx/{URL/Doc/mxURL.pdf,DateTime/Doc/mxDateTime.pdf} + install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } |