summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGeorgios Eleftheriou2019-10-27 13:21:04 +0100
committerGeorgios Eleftheriou2019-10-27 13:21:04 +0100
commit71b4dfef400d31db12d6ab9be0645ecd81283340 (patch)
treeaa02d901ae4121585e9eb2c0b03aa53f98213d39 /PKGBUILD
parente824fab59f00deb1c2db7fe2fe06e162cf42ffff (diff)
downloadaur-hdfview.tar.gz
upgrade to 3.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD76
1 files changed, 42 insertions, 34 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8f447af8c1e..9a8211c50a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,15 @@
-# Maintainer : George Eleftheriou <eleftg>
+# Maintainer : Chris Billington <chrisjbillington>
+# Maintainer : Martin Diehl <MartinDiehl>
+# Maintainer : Georgios Eleftheriou <eleftg>
# Contributor : Martin Wimpress <code@flexion.org>
# Contributor : Nick Pope
# Contributor : Bryce Nordgren <bnordgren at gmail dot com>
pkgname=hdfview
_pkgname=HDFView
-pkgver=3.0
-_pkgver=${pkgver}.0
-pkgrel=4
+pkgver=3.1.0
+_pkgver=${pkgver::-2}
+pkgrel=1
pkgdesc="a GUI browser for reading hdf5 files"
arch=('x86_64')
url="https://www.hdfgroup.org/downloads/hdfview/"
@@ -17,49 +19,55 @@ replaces=('hdfview-beta')
conflicts=('hdfview-beta')
makedepends=('ant' 'java-environment')
options=(!strip)
-source=("https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/${pkgname}-${pkgver}/src/${pkgname}-${pkgver}.tar.gz"
- license
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/${pkgname}-${_pkgver}/src/${pkgname}-${pkgver}.tar.gz"
+ build.patch
${_pkgname}.desktop
- ${_pkgname}.ico)
+ HDF_logo.svg)
sha512sums=(
- '8d1c0e4c063153fa4bfac80c6f85e9a6f0e879e706d77ba31db20eca105bc7c72852edd2aa1ada38446b2bd44581291faa0d93c3cc3a4086f153a35dcd619061'
- 'd831e3211c67480728488e1e2df2596d41381c5ba7b8451ea0f5174d9a34f224133d9cbaa81728cb68560328054663e8940de86db4777de8b46b65f080de9674'
- '42cbf32c91c4bfd3984d2ef130d8357c28269660117ad210039d9599904688853674f6626a7663c17cf0927895e5cbbede719b6766ff19ace43a5447421a4709'
- 'bc2bb9ffa22140c1b6b5448ed310a8dbb839ddcf802ec327f32f904f0e77e0034bb26fabeb5d9e4e8ce8d334333327a2bd08b8e07f0313e85ef50afe0be41cfe')
+ 'ae9b180c0da2b4b9a39189a7e42068435e29802469488b5880c4eea6e9cc4a63ad19b5c90529e55cbd62e4085379259782d404105b85ec52b837196fd43701a0'
+ '18a20af53ea2c075a26e22dbab6d7cecb67bead97db49569963e60d589c59f183ad97e796f0a2b67b59cdd311ff2831a134d69ee560a50c2ff8e821472ac82cb'
+ 'c92d8cd4818feabb996b43c81e4e554e16f8120c80c73a5b7cc8bb2c4c4a59bdd47d42b19ec7a3454f855155ba17b65631e7016f891f29ef4ee8fd4ee45caf90'
+ '649eb81f33a3b38a7ae2ee9a7f286ffa489d0bd7a9f37a0face64fe7956863dcab2131be3792c45dc03b1a6955fda2b37d168698922e938b73c90d24fee7a8c4')
prepare() {
cd "${pkgname}-${pkgver}"
+ patch --forward --strip=1 --input="${srcdir}/build.patch"
}
build() {
- # workaround for java exception thrown @ build.xml:838
- # [...] error=7 chmod [...] argument list too long
- # when building with java 10
- ulimit -s unlimited
+ # workaround for java exception thrown @ build.xml:838
+ # [...] error=7 chmod [...] argument list too long
+ # when building with java 10
+ ulimit -s unlimited
- cd "${pkgname}-${pkgver}"
- HDFLIBS=/opt/hdf4 HDF5LIBS=/usr ant package
+ cd "${pkgname}-${pkgver}"
+ HDFLIBS=/opt/hdf4 HDF5LIBS=/usr ant package
}
package() {
- cd "${pkgname}-${pkgver}"
- mkdir "${pkgdir}/opt"
- cp -a "build/dist/${_pkgname}-${_pkgver}-Linux.sh" "${pkgdir}/opt"
- cd "${pkgdir}/opt"
+ cd "${pkgname}-${pkgver}"
+ mkdir "${pkgdir}/opt"
+ cp -a "build/dist/${_pkgname}-${pkgver}-Linux.sh" "${pkgdir}/opt"
+ cd "${pkgdir}/opt"
+
+ # Make extraction non interactive
+ sed -i 's/interactive=TRUE/interactive=FALSE/' ${_pkgname}-${pkgver}-Linux.sh
+ sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' ${_pkgname}-${pkgver}-Linux.sh
+
+ ./${_pkgname}-${pkgver}-Linux.sh
+ rm "${_pkgname}-${pkgver}-Linux.sh"
- # Make extraction non interactive
- sed -i 's/interactive=TRUE/interactive=FALSE/' ${_pkgname}-${_pkgver}-Linux.sh
- sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' ${_pkgname}-${_pkgver}-Linux.sh
+ # use default java
+ rm -rf ${pkgdir}/opt/${_pkgname}/${pkgver}/jre
+ sed -i 's:export JAVABIN=$INSTALLDIR/jre/bin:export JAVABIN=/usr/lib/jvm/default-runtime/bin:' ${pkgdir}/opt/${_pkgname}/${pkgver}/hdfview.sh
- ./${_pkgname}-${_pkgver}-Linux.sh
- rm "${_pkgname}-${_pkgver}-Linux.sh"
- mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/bin"
- # Desktop files, icons, wrappers and license
- echo "#!/usr/bin/env bash" > "${pkgdir}/usr/bin/hdfview.sh"
- echo "/opt/HDFView/${_pkgver}/hdfview.sh "'$@' >> "${pkgdir}/usr/bin/hdfview.sh"
- chmod 755 "${pkgdir}/usr/bin/hdfview.sh"
- install -D -m 644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
- install -D -m 644 "${srcdir}/${_pkgname}.ico" "${pkgdir}/usr/share/pixmaps/${_pkgname}.ico"
- install -D -m 644 "${srcdir}/license" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ # Desktop files, icons, wrappers and license
+ echo "#!/usr/bin/env bash" > "${pkgdir}/usr/bin/hdfview"
+ echo "/opt/HDFView/${pkgver}/hdfview.sh "'-root $PWD "$@"' >> "${pkgdir}/usr/bin/hdfview"
+ chmod 755 "${pkgdir}/usr/bin/hdfview"
+ install -D -m 644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -D -m 644 "${srcdir}/HDF_logo.svg" "${pkgdir}/usr/share/pixmaps/HDF_logo.svg"
+ install -D -m 644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}