blob: 468f74f1123da973e46bcd9f7fd65e262a7f45e0 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Fazlul Shahriar <fshahriar@gmail.com>
# Contributor: David Scholl <djscholl at gmail dot com>
pkgbase=python-pyhdf
pkgname=('python-pyhdf' 'python2-pyhdf')
pkgver=0.10.1
pkgrel=1
pkgdesc='Python bindings for the HDF4 library'
arch=('x86_64')
license=('MIT')
url='https://github.com/fhs/pyhdf'
makedepends=('python' 'python2' 'python-numpy' 'python2-numpy' 'hdf4')
source=("https://pypi.io/packages/source/p/pyhdf/pyhdf-${pkgver}.tar.gz")
sha256sums=('c939cf92487c37da61b41867b4ab032711ccde407340f7ef7d18917631cf62b2')
prepare() {
cp -a $srcdir/pyhdf-$pkgver{,-py2}
}
build() {
export INCLUDE_DIRS="/opt/hdf4/include"
export LIBRARY_DIRS="/opt/hdf4/lib"
cd $srcdir/pyhdf-$pkgver
python setup.py build
cd $srcdir/pyhdf-$pkgver-py2
python2 setup.py build
}
package_python-pyhdf() {
depends=('python' 'python-numpy' 'hdf4')
cd $srcdir/pyhdf-$pkgver
python setup.py install --root=$pkgdir --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-pyhdf() {
depends=('python2' 'python2-numpy' 'hdf4')
cd $srcdir/pyhdf-$pkgver
python2 setup.py install --root=$pkgdir --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|