Package Details: hdf-java 2.13.0-1

Git Clone URL: (read-only)
Package Base: hdf-java
Description: Java interface to HDF 4 and 5; plus the HDFView application
Upstream URL:
Licenses: custom
Submitter: bnordgren
Maintainer: guotsuan
Last Packager: guotsuan
Votes: 11
Popularity: 0.093743
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:

$ diff PKGBUILD PKGBUILD.upstream
< pkgver=2.13.0
> pkgver=2.11
< md5sums=('8ad9c8eca89221078a58f70a999ae0b4'
> md5sums=('1cf203b659b54600c8ee735aea32f40e'
< sed -i 's/interactive=TRUE/interactive=FALSE/' "${srcdir}/HDFView-${pkgver}"
< sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' "${srcdir}/HDFView-${pkgver}"
> sed -i 's/interactive=TRUE/interactive=FALSE/' "${srcdir}/${_pkgname}-${pkgver}/HDFView-${pkgver}"
> sed -i 's/cpack_skip_license=FALSE/cpack_skip_license=TRUE/' "${srcdir}/${_pkgname}-${pkgver}/HDFView-${pkgver}"
< cd "${srcdir}"
< mv ./HDFView ./HDFView-moved-temporarily
< ./HDFView-${pkgver}
< mv ./HDFView ./${_pkgname}-${pkgver}
< mv ./HDFView-moved-temporarily ./HDFView
> cd "${srcdir}/${_pkgname}-${pkgver}"
> ./HDFView-${pkgver}
< 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}"
< sed "s:JAVABIN=${srcdir}/HDFView/${pkgver}/jre/bin:JAVABIN=/usr/bin:" "${srcdir}/${_pkgname}-${pkgver}/${pkgver}/" > "${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/" > "${pkgdir}/usr/bin/hdf-java"
< 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.