diff options
author | Jingbei Li | 2016-11-02 01:48:43 +0800 |
---|---|---|
committer | Jingbei Li | 2016-11-02 01:48:43 +0800 |
commit | 49700231e7a5fa9fa9b4a664866ff0d3c272d221 (patch) | |
tree | 4bb57ade2d43fde6f34f8eefec12b7eebbcc030d | |
parent | 9e2c2388a79d8dc1c8aa23af8f84cd157bb345b0 (diff) | |
download | aur-49700231e7a5fa9fa9b4a664866ff0d3c272d221.tar.gz |
make it no-conflict to hdf5
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 36 insertions, 25 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue Nov 1 17:36:28 UTC 2016 +# Tue Nov 1 17:48:37 UTC 2016 pkgbase = hdf5_18-cpp-fortran pkgdesc = General purpose library and file format for storing scientific data pkgver = 1.8.17 @@ -13,8 +13,8 @@ pkgbase = hdf5_18-cpp-fortran depends = zlib depends = sh depends = gcc-libs - provides = hdf5 - conflicts = hdf5 + provides = hdf5_18 + conflicts = hdf5_18 source = ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-1.8.17.tar.bz2 sha1sums = 640f1a46cb1b353339695355b4fca42df05be765 diff --git a/.gitignore b/.gitignore index 69f7b42a3607..0c94faff48d9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,7 @@ #pkg building files *.7z -*.tar.xz -*.tar.gz +*.tar* src/ pkg/ @@ -10,34 +10,46 @@ url="http://www.hdfgroup.org/HDF5/" license=('custom') depends=('zlib' 'sh' 'gcc-libs') makedepends=('time' 'gcc-fortran') -conflicts=('hdf5') -provides=('hdf5') +provides=('hdf5_18') +conflicts=('hdf5_18') source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver/_/-}.tar.bz2) sha1sums=('640f1a46cb1b353339695355b4fca42df05be765') build() { - cd "$srcdir/${_pkgname}-${pkgver/_/-}" - ./configure --prefix=/usr --disable-static \ - --enable-hl \ - --enable-cxx \ - --enable-fortran \ - --enable-fortran2003 \ - --enable-linux-lfs \ - --enable-build-mode=production \ - --with-pic \ - --docdir=/usr/share/doc/hdf5/ \ - --with-pthread=/usr/lib/ \ - --disable-sharedlib-rpath - make + cd "$srcdir/${_pkgname}-${pkgver/_/-}" + ./configure --prefix=/usr --disable-static \ + --enable-hl \ + --enable-cxx \ + --enable-fortran \ + --enable-fortran2003 \ + --enable-linux-lfs \ + --enable-build-mode=production \ + --with-pic \ + --docdir=/usr/share/doc/hdf5_18/ \ + --with-pthread=/usr/lib \ + --disable-sharedlib-rpath \ + --libdir=/usr/lib/hdf5_18 \ + --includedir=/usr/include/hdf5_18 + make } package() { - cd "$srcdir/${_pkgname}-${pkgver/_/-}" + cd "$srcdir/${_pkgname}-${pkgver/_/-}" - make -j1 DESTDIR="${pkgdir}" install + make -j1 DESTDIR="${pkgdir}" install - install -d -m755 "$pkgdir/usr/share/licenses/${pkgname}" - install -m644 "$srcdir/${_pkgname}-${pkgver/_/-}/COPYING" \ - "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" + rm -rf "${pkgdir}"/usr/share/hdf5_examples + + for file in "${pkgdir}"/usr/bin/* + do + mv "${file}" "${file}"_18 + done + + install -d m755 "${pkgdir}"/etc/ld.so.conf.d + echo /usr/lib/hdf5_18 >> "${pkgdir}"/etc/ld.so.conf.d/hdf5_18.conf + + install -d -m755 "$pkgdir/usr/share/licenses/${pkgname}" + install -m644 "$srcdir/${_pkgname}-${pkgver/_/-}/COPYING" \ + "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } |