Created
March 6, 2015 21:37
-
-
Save rwcarlsen/d8dc748c3cb4d327712d to your computer and use it in GitHub Desktop.
arch pkgbuild for hdf5 1.8.13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkgname=hdf5-old | |
| pkgver=1.8.13 | |
| pkgrel=1 | |
| arch=('i686' 'x86_64') | |
| pkgdesc="General purpose library and file format for storing scientific data" | |
| url="http://www.hdfgroup.org/HDF5/" | |
| provides=('hdf5') | |
| conflicts=('hdf5') | |
| license=('custom') | |
| depends=('zlib' 'sh') | |
| source=(http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver/_/-}/src/hdf5-${pkgver/_/-}.tar.gz) | |
| sha1sums=('5a66c1393b21f2c8ab303d807d55af64933296b6') | |
| build() { | |
| cd "$srcdir/hdf5-${pkgver/_/-}" | |
| export CFLAGS="${CFLAGS/O2/O0}" | |
| export CXXFLAGS="${CFLAGS}" | |
| ./configure --prefix=/usr --disable-static \ | |
| --enable-hl \ | |
| --enable-threadsafe \ | |
| --enable-linux-lfs \ | |
| --enable-production \ | |
| --with-pic \ | |
| --docdir=/usr/share/doc/hdf5/ \ | |
| --with-pthread=/usr/lib/ \ | |
| --disable-sharedlib-rpath | |
| make | |
| } | |
| package() { | |
| cd "$srcdir/hdf5-${pkgver/_/-}" | |
| make -j1 DESTDIR="${pkgdir}" install | |
| install -d -m755 "$pkgdir/usr/share/licenses/hdf5" | |
| install -m644 "$srcdir/hdf5-${pkgver/_/-}/COPYING" \ | |
| "$pkgdir/usr/share/licenses/hdf5/LICENSE" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THANKS