summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJingbei Li2017-01-02 16:46:38 +0800
committerJingbei Li2017-01-02 16:46:38 +0800
commitd8ae02534d813575431a86abe2db0ad85e3626f6 (patch)
tree5188f84b07936ec2505b16dbd4665e18eb081d54 /PKGBUILD
parentce63a493e0577299c15aa802e4165e90a6834cf5 (diff)
downloadaur-d8ae02534d813575431a86abe2db0ad85e3626f6.tar.gz
fix hdf5 libraries
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 14b9a1c22a0..9cd4b38a4f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Jingbei Li <i@jingbei.lli>
pkgname='torch7-hdf5-git'
pkgdesc='Torch interface to HDF5 library'
-pkgver=v0.0.r116.g639bb4e
-pkgrel=1
-makedepends=('cmake' 'git')
+pkgver=v0.0.r118.ga4f80cb
+pkgrel=2
+makedepends=('cmake' 'git' 'hdf5-cpp-fortran')
depends=('torch7-git>=r819' 'hdf5_18-cpp-fortran')
arch=('x86_64' 'i686')
url='https://github.com/deepmind/torch-hdf5'
@@ -35,4 +35,7 @@ package () {
mkdir -p "${pkgdir}/usr/share/lua/5.1"
mv "${pkgdir}/usr/lua/hdf5" "${pkgdir}/usr/share/lua/5.1/"
rm -rf "${pkgdir}/usr/lua"
+
+ # Fix HDF5 libraries
+ sed -e 's/""/"\/usr\/include\/hdf5_18"/' -e 's/libhdf5/hdf5_18\/libhdf5/g' -i "${pkgdir}/usr/share/lua/5.1/hdf5/config.lua"
}