diff --git a/srcpkgs/XyGrib/files/XyGrib b/srcpkgs/XyGrib/files/XyGrib new file mode 100644 index 00000000000..278aa78dbc3 --- /dev/null +++ b/srcpkgs/XyGrib/files/XyGrib @@ -0,0 +1,5 @@ +#!/bin/bash + +cd /usr/libexec/XyGrib +./bin/XyGrib + diff --git a/srcpkgs/XyGrib/files/XyGrib.desktop b/srcpkgs/XyGrib/files/XyGrib.desktop new file mode 100644 index 00000000000..d7a288f26b0 --- /dev/null +++ b/srcpkgs/XyGrib/files/XyGrib.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=3.6 +Encoding=UTF-8 +Type=Application +Name=XyGrib +Comment=GRIB File Viewer +Comment[fr]=Visualisation de données météo au format GRIB +Terminal=false +Categories=XyGrib;Meteo;Utility +Icon=XyGrib.png +Exec=/usr/bin/XyGrib diff --git a/srcpkgs/XyGrib/files/XyGrib.png b/srcpkgs/XyGrib/files/XyGrib.png new file mode 100644 index 00000000000..472e6080f8a Binary files /dev/null and b/srcpkgs/XyGrib/files/XyGrib.png differ diff --git a/srcpkgs/XyGrib/patches/dont-build-own-qwt.patch b/srcpkgs/XyGrib/patches/dont-build-own-qwt.patch new file mode 100644 index 00000000000..dc27983cb40 --- /dev/null +++ b/srcpkgs/XyGrib/patches/dont-build-own-qwt.patch @@ -0,0 +1,90 @@ +https://github.com/opengribs/XyGrib/commit/a687a2b9ddbd988661ba000b9a2685e7493bc92c.patch + +From a687a2b9ddbd988661ba000b9a2685e7493bc92c Mon Sep 17 00:00:00 2001 +From: Menno +Date: Sun, 10 Jun 2018 00:31:06 +0200 +Subject: [PATCH] remove references to qwt from Makefiles + +--- + Makefile | 12 +----------- + src/xyGrib.pro | 4 ++-- + 2 files changed, 3 insertions(+), 13 deletions(-) + +diff --git a/Makefile b/Makefile +index f7b81e1..46c1e0c 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,19 +2,16 @@ QMAKE=/usr/bin/qmake + + INSTALLDIR=$(HOME)/XyGrib + MACQTBIN=/usr/local/Qt-5.3.2/bin/ +-QWTDIR=src/qwt-6.1.3 + + all: XyGrib + +-SRC= src/*.h src/*.cpp src/*/*.h src/*/*.cpp \ +- src/qwt*/src/*.cpp src/qwt*/src/*.h ++SRC= src/*.h src/*.cpp src/*/*.h src/*/*.cpp + + mac: $(SRC) + rm -f ./XyGrib + rm -fr ./XyGrib.app + rm -f src/Makefile + cd src/g2clib; make -f makefile.osx +- cd $(QWTDIR)/src; $(MACQTBIN)/qmake; make -j6 + cd src; $(MACQTBIN)/qmake; make -j6 + + macclean: +@@ -22,8 +19,6 @@ macclean: + rm -fr XyGrib.app + rm -f src/XyGrib + rm -f src/release/XyGrib.exe +- rm -f $(QWTDIR)/lib/* +- cd $(QWTDIR)/src; $(MACQTBIN)/qmake; make clean + cd src; $(MACQTBIN)/qmake; make clean + + clean: +@@ -34,15 +29,12 @@ clean: + cd src; $(QMAKE); make clean + + veryclean: clean +- rm -f $(QWTDIR)/lib/* +- cd $(QWTDIR)/src; $(QMAKE); make clean + rm -f src/g2clib/libg2c.a + rm -f src/g2clib/*.o + + XyGrib: $(SRC) + @ echo + rm -f ./XyGrib +- cd $(QWTDIR)/src; $(QMAKE); make -j6 + cd src/g2clib; make + cd src; $(QMAKE); make -j6 + @ echo "-----------------------------------" +@@ -64,5 +56,3 @@ install: XyGrib + echo 'bin/XyGrib $$*' >> ./XyGrib + chmod 755 ./XyGrib + cp -af XyGrib $(INSTALLDIR) +- +- +diff --git a/src/xyGrib.pro b/src/xyGrib.pro +index 2523af8..30879ed 100644 +--- a/src/xyGrib.pro ++++ b/src/xyGrib.pro +@@ -8,7 +8,7 @@ TEMPLATE = app + TARGET = XyGrib + + DEPENDPATH += . util map GUI +-INCLUDEPATH += . util map GUI curvedrawer qwt-6.1.3/src g2clib ++INCLUDEPATH += . util map GUI g2clib + + # ---------------------------------------------------- + # platform specific +@@ -36,7 +36,7 @@ else { + } + } + +-LIBS += -lbz2 -lz -lproj -lnova -Lqwt-6.1.3/lib/ -lqwt ++LIBS += -lbz2 -lz -lproj -lnova + LIBS += -Lg2clib -lg2c -lpng -ljasper # respect order! + + # ---------------------------------------------------- diff --git a/srcpkgs/XyGrib/template b/srcpkgs/XyGrib/template new file mode 100644 index 00000000000..d76d3d8febb --- /dev/null +++ b/srcpkgs/XyGrib/template @@ -0,0 +1,33 @@ +# Template file for 'XyGrib' +pkgname=XyGrib +version=1.0.1 +revision=1 +wrksrc="${pkgname}-${version}-src" +patch_args="-Np1" +build_style=gnu-makefile +hostmakedepends="qt5-devel" +makedepends="jasper-devel libnova-devel nettle-devel proj-devel qt5-devel qwt-devel" +short_desc="Weather data visulization" +maintainer="Andrew Benson " +license="GPL-3.0-or-later" +homepage="https://opengribs.org/" +distfiles="https://github.com/opengribs/XyGrib/releases/download/v${version}/XyGrib-${version}-src.tgz" +checksum=2309505161577a6bf4787b8b9e7ead4ca9dfdb05b3e655b4583d69bdb9f2be9e + +if [ -n "$CROSS_BUILD" ]; then + make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++" +fi + +pre_configure() { + sed -i "s|\$(HOME)|$DESTDIR/usr/libexec|" Makefile +} + +post_install() { + vbin ${FILESDIR}/XyGrib + + vmkdir usr/share/applications + vinstall ${FILESDIR}/XyGrib.desktop 0644 usr/share/applications + + vmkdir usr/share/icons + vinstall ${FILESDIR}/XyGrib.png 0644 usr/share/icons +}