summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorgraziano.giuliani2015-07-04 16:43:23 +0200
committergraziano.giuliani2015-07-04 16:43:23 +0200
commit1f3d6d2b014bb9537dab051cab750ae87fd569e8 (patch)
tree1b2844986a6d4961eb995e8c878de1ca7db7b8c5 /PKGBUILD
downloadaur-1f3d6d2b014bb9537dab051cab750ae87fd569e8.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee3315f8406
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
+
+pkgname=wgrib2
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="A program to manipulate, inventory and decode GRIB-2 files"
+arch=('i686' 'x86_64')
+url="http://www.cpc.noaa.gov/products/wesley/wgrib2/"
+license=('custom')
+depends=('netcdf' 'jasper' 'libpng' 'libmariadbclient' 'proj')
+makedepends=('g2clib' 'gctpc')
+source=(ftp://ftp.cpc.ncep.noaa.gov/wd51we/${pkgname}/${pkgname}_nolib.tgz.v${pkgver}
+ wgrib2.patch)
+md5sums=('d423ff205f9c61b9ad8f6c0cd99f70b9'
+ '88cf8f897294b6db3f8f53ca1a847cd8')
+
+build() {
+ cd ${srcdir}/grib2
+ patch -p0 -i ${srcdir}/wgrib2.patch
+ FC=gfortran F90=gfortran F77=gfortran make
+}
+
+package()
+{
+ cd ${srcdir}/grib2
+ install -Dm755 ${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
+ install -Dm644 ${pkgname}/LICENSE-${pkgname} \
+ ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}