PKGBUILDs/community/python-pytables/PKGBUILD

62 lines
1.7 KiB
Bash
Raw Normal View History

2014-02-07 13:52:47 +00:00
# $Id$
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Sebastien Binet <binet@cern.ch>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2014-04-10 17:05:35 +00:00
# - remove package when bumped upstream
2014-02-07 13:52:47 +00:00
pkgbase=python-pytables
pkgname=('python2-pytables' 'python-pytables')
2014-04-10 14:47:38 +00:00
pkgver=3.1.1
2014-08-02 15:42:19 +00:00
pkgrel=2
2014-02-07 13:52:47 +00:00
arch=("i686" "x86_64")
pkgdesc="A package for managing hierarchical datasets and designed to efficiently and easily cope with extremely large amounts of data"
url="http://www.pytables.org"
license=("BSD")
2014-08-02 15:42:19 +00:00
makedepends=('lzo' 'hdf5' 'python2-numexpr' 'cython2' 'python-numexpr' 'cython')
2014-02-07 13:52:47 +00:00
source=("http://pypi.python.org/packages/source/t/tables/tables-$pkgver.tar.gz"
'arm.patch')
2014-04-10 14:47:38 +00:00
md5sums=('38d917f0c6dfb0bc28ce9ea0c3492524'
2014-02-07 13:52:47 +00:00
'ead28de59a99ef97aceec17cc1a9132d')
prepare() {
cd "$srcdir/tables-$pkgver"
2014-04-10 17:05:35 +00:00
#patch -p1 -i ../arm.patch
2014-02-07 13:52:47 +00:00
}
build() {
cd "$srcdir"
cp -a tables-$pkgver tables-py2-$pkgver
msg "Building Python2"
cd "$srcdir"/tables-py2-$pkgver
python2 setup.py build
msg "Building Python3"
cd "$srcdir"/tables-$pkgver
python setup.py build
}
package_python2-pytables() {
2014-08-02 15:42:19 +00:00
depends=('lzo' 'hdf5' 'python2-numexpr' 'cython2')
2014-02-07 13:52:47 +00:00
cd "$srcdir"/tables-py2-${pkgver}
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# see FS#36015
mv "$pkgdir"/usr/bin/pt2to3{,-2.7}
mv "$pkgdir"/usr/bin/ptdump{,-2.7}
mv "$pkgdir"/usr/bin/ptrepack{,-2.7}
}
package_python-pytables() {
2014-08-02 15:42:19 +00:00
depends=('lzo' 'hdf5' 'python-numexpr' 'cython')
2014-02-07 13:52:47 +00:00
cd "$srcdir"/tables-${pkgver}
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}