summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD16
-rw-r--r--panoply.desktop14
-rw-r--r--panoply.install13
-rw-r--r--panoply.pngbin0 -> 4297 bytes
5 files changed, 45 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 27966117e820..3bcad8e922ed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = panoply
pkgdesc = NetCDF, HDF and GRIB Data Viewer by NASA GISS
pkgver = 4.2.2
- pkgrel = 1
+ pkgrel = 2
url = http://www.giss.nasa.gov/tools/panoply/
+ install = panoply.install
arch = any
groups = nasa-tools
license = custom
@@ -10,9 +11,13 @@ pkgbase = panoply
source = http://www.giss.nasa.gov/tools/panoply/PanoplyJ.zip
source = LICENSES
source = panoply-script.patch
+ source = panoply.png
+ source = panoply.desktop
sha1sums = 9db14286bc7e561f063d354aae93ffe9775bb8f9
sha1sums = a83855747414873269e21aaff1a53d13ab5de304
sha1sums = 707208d062922b5426303238870e0dd269257697
+ sha1sums = ef7c4bbe22f18b61a1f215cc43d76e975f0abf17
+ sha1sums = 39c9a58c25d8f764c928e9dfe75f4f73bb9198f0
pkgname = panoply
diff --git a/PKGBUILD b/PKGBUILD
index b8f15ec022cb..ce922e457b32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: MadPhysicist <jfoxrabinovitz at gmail dot com>
pkgname=panoply
pkgver=4.2.2
-pkgrel=1
+pkgrel=2
pkgdesc='NetCDF, HDF and GRIB Data Viewer by NASA GISS'
arch=('any')
url='http://www.giss.nasa.gov/tools/panoply/'
@@ -15,15 +15,19 @@ conflicts=()
replaces=()
backup=()
options=()
-install=
+install=panoply.install
changelog=
source=('http://www.giss.nasa.gov/tools/panoply/PanoplyJ.zip'
'LICENSES'
- 'panoply-script.patch')
+ 'panoply-script.patch'
+ 'panoply.png'
+ 'panoply.desktop')
noextract=()
sha1sums=('9db14286bc7e561f063d354aae93ffe9775bb8f9'
'a83855747414873269e21aaff1a53d13ab5de304'
- '707208d062922b5426303238870e0dd269257697')
+ '707208d062922b5426303238870e0dd269257697'
+ 'ef7c4bbe22f18b61a1f215cc43d76e975f0abf17'
+ '39c9a58c25d8f764c928e9dfe75f4f73bb9198f0')
prepare() {
cd ${srcdir}/PanoplyJ
@@ -35,4 +39,8 @@ package() {
install -d -m755 ${pkgdir}/usr/share/java/panoply
install -Dm644 ${srcdir}/PanoplyJ/jars/*.jar ${pkgdir}/usr/share/java/panoply
install -Dm755 ${srcdir}/PanoplyJ/panoply.sh ${pkgdir}/usr/bin/panoply
+ install -d -m755 ${pkgdir}/usr/share/icons/hicolor/48x48/apps
+ install -Dm644 ${srcdir}/panoply.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps
+ install -d -m755 ${pkgdir}/usr/share/applications
+ install -Dm644 ${srcdir}/panoply.desktop ${pkgdir}/usr/share/applications
}
diff --git a/panoply.desktop b/panoply.desktop
new file mode 100644
index 000000000000..a261b536552e
--- /dev/null
+++ b/panoply.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Name=Panoply
+GenericName=Data Viewer
+Comment=Plot geo-referenced and other arrays from netCDF, HDF, GRIB, and other datasets
+Exec=/usr/bin/panoply %F
+TryExec=/usr/bin/panoply
+Icon=panoply
+Terminal=false
+Type=Application
+Categories=Science;
+MimeType=application/x-hdf;application/x-netcdf;
+Keywords=Viewer;Data;netCDF;HDF;GRIB;Science;Georeference;
+
diff --git a/panoply.install b/panoply.install
new file mode 100644
index 000000000000..e5514e0003dc
--- /dev/null
+++ b/panoply.install
@@ -0,0 +1,13 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
diff --git a/panoply.png b/panoply.png
new file mode 100644
index 000000000000..47c6c776bc47
--- /dev/null
+++ b/panoply.png
Binary files differ