Package Details: hdf-java 2.13.0-1

Git Clone URL: https://aur.archlinux.org/hdf-java.git (read-only)
Package Base: hdf-java
Description: Java interface to HDF 4 and 5; plus the HDFView application
Upstream URL: http://www.hdfgroup.org/hdf-java-html/
Licenses: custom
Submitter: bnordgren
Maintainer: guotsuan
Last Packager: guotsuan
Votes: 11
Popularity: 0.000353
First Submitted: 2011-09-07 15:45
Last Updated: 2016-08-31 06:22

Latest Comments

guotsuan commented on 2016-08-17 23:25

@Scindix @ canismarko Thanks to both you.

I'm sorry that I'm in vacation and can only update the package at the end of August.

Scindix commented on 2016-08-17 17:21

`pkgver` needs to be updated to "2.13.0". "2.11" doesn't exist anymore.
Also some paths and commands needed to be adjusted to get HDFView working. Now it installs and runs perfectly. Below are the changes I made. Could the package maintainer review it and then update PKGBUILD?

Edit: To make things easier: http://pastebin.com/htR9Gvkq

$ diff PKGBUILD PKGBUILD.upstream
7c7
< pkgver=2.13.0
---
> pkgver=2.11
23c23
< md5sums=('8ad9c8eca89221078a58f70a999ae0b4'
---
> md5sums=('1cf203b659b54600c8ee735aea32f40e'
31,32c31,32
< sed -i 's/interactive=TRUE/interactive=FALSE/' "${srcdir}/HDFView-${pkgver}-Linux.sh"
< sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' "${srcdir}/HDFView-${pkgver}-Linux.sh"
---
> sed -i 's/interactive=TRUE/interactive=FALSE/' "${srcdir}/${_pkgname}-${pkgver}/HDFView-${pkgver}.0-Linux.sh"
> sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' "${srcdir}/${_pkgname}-${pkgver}/HDFView-${pkgver}.0-Linux.sh"
36,40c36,37
< cd "${srcdir}"
< mv ./HDFView ./HDFView-moved-temporarily
< ./HDFView-${pkgver}-Linux.sh
< mv ./HDFView ./${_pkgname}-${pkgver}
< mv ./HDFView-moved-temporarily ./HDFView
---
> cd "${srcdir}/${_pkgname}-${pkgver}"
> ./HDFView-${pkgver}.0-Linux.sh
46c43
< cp -r "${srcdir}/${_pkgname}-${pkgver}/${pkgver}/lib" "${pkgdir}/usr/share/java/${pkgname}"
---
> mv "${srcdir}/${_pkgname}-${pkgver}/HDF_Group/${_pkgname}/${pkgver}.0/lib" "${pkgdir}/usr/share/java/${pkgname}"
52,53c49
< sed "s:JAVABIN=${srcdir}/HDFView/${pkgver}/jre/bin:JAVABIN=/usr/bin:" "${srcdir}/${_pkgname}-${pkgver}/${pkgver}/hdfview.sh" > "${pkgdir}/usr/bin/hdf-java"
< sed -i "s:INSTALLDIR=${srcdir}/HDFView/${pkgver}:INSTALLDIR=/usr/share/java/hdf-java:" "${pkgdir}/usr/bin/hdf-java"
---
> sed -e 's:INSTALLDIR=/HDF_Group/HDFView/2.11.0:INSTALLDIR=/usr/share/java/hdf-java:' "${srcdir}/${_pkgname}-${pkgver}/HDF_Group/${_pkgname}/${pkgver}.0/bin/hdfview.sh" > "${pkgdir}/usr/bin/hdf-java"
58c54
< cp -r "${srcdir}/${_pkgname}-${pkgver}/${pkgver}/share/doc" "${pkgdir}/usr/share/${pkgname}/doc"
---
> mv "${srcdir}/${_pkgname}-${pkgver}/HDF_Group/${_pkgname}/${pkgver}.0/share/UsersGuide" "${pkgdir}/usr/share/${pkgname}/doc"

canismarko commented on 2016-04-07 19:39

I was not able to associate .hdf files with the HDF viewer (eg in nautilus). I managed to fix this by changing `exec ${HDFVIEW_APPLICATION}` to `exec ${HDFVIEW_APPLICATION} "$@"` in the HDFView file and `Exec=/usr/bin/HDFView` to `Exec=/usr/bin/HDFView %F` in the HDFView.desktop file.