summaryrefslogtreecommitdiff
path: root/extra/python-egenix-mx-base/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-08-17 12:10:05 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-08-17 12:10:05 +0200
commitf5960fe27a2d814eab2ac7efacd714322c18a7b7 (patch)
tree4961d39c9af71f05b5b6ba9f4a23c47963193d37 /extra/python-egenix-mx-base/PKGBUILD
parent1d26d40c2055019b7eb001251919aa73baae0029 (diff)
parent74952c750361d72d7b2d14179d4e88b6ce0a0c7e (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/bsdiff/PKGBUILD community/drivel/PKGBUILD community/dvdbackup/PKGBUILD community/gdlmm/PKGBUILD community/gnome-phone-manager/PKGBUILD community/highlight/PKGBUILD community/i3-wm/PKGBUILD community/linux-tools/PKGBUILD community/obconf/PKGBUILD community/perl-class-factory-util/PKGBUILD community/python-mpi4py/PKGBUILD community/qupzilla/PKGBUILD community/subtitleeditor/PKGBUILD community/synce-librapi/PKGBUILD community/synce-libsynce/PKGBUILD community/tilda/PKGBUILD core/glibc/PKGBUILD core/iputils/PKGBUILD extra/alsa-tools/PKGBUILD extra/calligra/PKGBUILD extra/imagemagick/PKGBUILD extra/kobodeluxe/PKGBUILD extra/libburn/PKGBUILD extra/libisoburn/PKGBUILD extra/libisofs/PKGBUILD extra/libsamplerate/PKGBUILD extra/mariadb/PKGBUILD extra/maxima/PKGBUILD extra/nasm/PKGBUILD extra/perl-netaddr-ip/PKGBUILD extra/perl-template-toolkit/PKGBUILD extra/putty/PKGBUILD extra/samba/PKGBUILD extra/tk/PKGBUILD extra/vim/PKGBUILD extra/xorg-xprop/PKGBUILD extra/xorg-xwd/PKGBUILD pcr/ams/PKGBUILD pcr/clalsadrv/PKGBUILD
Diffstat (limited to 'extra/python-egenix-mx-base/PKGBUILD')
-rw-r--r--extra/python-egenix-mx-base/PKGBUILD26
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
}