blob: 4e6c88070bc74e7a99105ef255154527c59780a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $Id: PKGBUILD 152250 2012-03-06 01:50:30Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=python-egenix-mx-base
_origname=egenix-mx-base
pkgver=3.2.3
pkgrel=1
pkgdesc="A collection of Python tools"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.egenix.com/products/python/mxBase/"
depends=('python2')
replaces=('egenix-mx-base')
provides=('egenix-mx-base')
source=("http://downloads.egenix.com/python/${_origname}-${pkgver}.tar.gz")
sha1sums=('6f56a301859b8f9513141fbeeca3e537e082aa53')
build() {
cd "${srcdir}/${_origname}-${pkgver}"
find . -name \*.py -exec sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/env python2|" \
-e "s|#!/usr/local/.*python.*|#!/usr/bin/env python2|" {} \;
python2 setup.py build
}
package() {
cd "${srcdir}/${_origname}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
install -D -m644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|