updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jhdf5 / PKGBUILD
blob5ccac99762b041f9d54a496dbb901ecf45d79167
1 # Maintainer: Alucryd <alucryd at gmail dot com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 pkgname=jhdf5
5 pkgver=11.09.1
6 pkgrel=1
7 pkgdesc='An easy-to-use high-level API for HDF5 written in Java.'
8 arch=('any')
9 url='https://wiki-bsse.ethz.ch/display/JHDF5/JHDF5+%28HDF5+for+Java%29'
10 license=('APACHE')
11 depends=('java-runtime' 'hdf5')
12 source=("https://wiki-bsse.ethz.ch/download/attachments/26609237/cisd-jhdf5-$pkgver-r22873.zip")
13 md5sums=('a5883b03f76b921b79f13fab9e0b7a04')
15 package() {
16     cd cisd-jhdf5
17     install -Dm755 bin/h5ar.sh ${pkgdir}/usr/bin/h5ar
18     cd lib
19     mkdir -p $pkgdir/usr/share/java/$pkgname
20     cp *.jar $pkgdir/usr/share/java/$pkgname
21     chmod -R 644 $pkgdir/usr/share/java/$pkgname
22     if test "$CARCH" == i686; then
23         install -Dm644 native/jhdf5/i386-Linux/libjhdf5.so $pkgdir/usr/lib/libjhdf5.so
24     else
25         install -Dm644 native/jhdf5/amd64-Linux/libjhdf5.so $pkgdir/usr/lib/libjhdf5.so
26     fi