mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
New package: XyGrib-1.0.1
This commit is contained in:
parent
9451190198
commit
5e0284e2b0
5 changed files with 139 additions and 0 deletions
5
srcpkgs/XyGrib/files/XyGrib
Normal file
5
srcpkgs/XyGrib/files/XyGrib
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /usr/libexec/XyGrib
|
||||||
|
./bin/XyGrib
|
||||||
|
|
11
srcpkgs/XyGrib/files/XyGrib.desktop
Normal file
11
srcpkgs/XyGrib/files/XyGrib.desktop
Normal file
|
@ -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
|
BIN
srcpkgs/XyGrib/files/XyGrib.png
Normal file
BIN
srcpkgs/XyGrib/files/XyGrib.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
90
srcpkgs/XyGrib/patches/dont-build-own-qwt.patch
Normal file
90
srcpkgs/XyGrib/patches/dont-build-own-qwt.patch
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
https://github.com/opengribs/XyGrib/commit/a687a2b9ddbd988661ba000b9a2685e7493bc92c.patch
|
||||||
|
|
||||||
|
From a687a2b9ddbd988661ba000b9a2685e7493bc92c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Menno <menno__@xs4all.nl>
|
||||||
|
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!
|
||||||
|
|
||||||
|
# ----------------------------------------------------
|
33
srcpkgs/XyGrib/template
Normal file
33
srcpkgs/XyGrib/template
Normal file
|
@ -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 <abenson+void@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue