summaryrefslogtreecommitdiff
path: root/testing/python-egenix-mx-base/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/python-egenix-mx-base/PKGBUILD')
-rw-r--r--testing/python-egenix-mx-base/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/python-egenix-mx-base/PKGBUILD b/testing/python-egenix-mx-base/PKGBUILD
new file mode 100644
index 000000000..c2e1b4fa9
--- /dev/null
+++ b/testing/python-egenix-mx-base/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 168902 2012-10-16 14:06:20Z allan $
+# 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.4
+pkgrel=3
+pkgdesc="A collection of Python tools"
+arch=('i686' 'x86_64')
+license=('custom')
+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=('22d7fcbd582177f9a43245eadc3644f3b48cc9a7')
+
+build() {
+ cd "${srcdir}/${_origname}-${pkgver}"
+
+ find . -name \*.py -exec sed -i -e "s|^#!.*python|#!/usr/bin/python2|" {} \;
+
+ python2 setup.py build
+}
+
+package_python2-egenix-mx-base() {
+ depends=('python2>=2.7')
+ cd "${srcdir}/${_origname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+ install -D -m644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}