summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Legner2018-11-20 17:42:40 +0100
committerSimon Legner2018-11-20 17:42:40 +0100
commit659310741961e725550f3a38e654d6320b16f135 (patch)
tree23772ca6020b0ccbb79599ca3aff78c505b59737
parent7b88cf91a54eab3ac2c88d85768a5d28d8634d4f (diff)
downloadaur-659310741961e725550f3a38e654d6320b16f135.tar.gz
2.7.0-1: build meteoio-examples
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 19 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c91c252df9..2a42be6ec8b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = meteoio
pkgdesc = Make data access easy and safe for numerical simulations in environmental sciences
pkgver = 2.7.0
- pkgrel = 1
+ pkgrel = 2
url = https://models.slf.ch/p/meteoio/
arch = x86_64
license = LGPL3
@@ -12,3 +12,5 @@ pkgbase = meteoio
pkgname = meteoio
+pkgname = meteoio-examples
+
diff --git a/PKGBUILD b/PKGBUILD
index 8ccdd6acb5a..9780ab7fe84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
-pkgname=meteoio
+pkgbase=meteoio
+pkgname=('meteoio' 'meteoio-examples')
pkgver=2.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="Make data access easy and safe for numerical simulations in environmental sciences"
arch=('x86_64')
url="https://models.slf.ch/p/meteoio/"
@@ -16,11 +17,23 @@ build() {
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
+ cd ../doc/examples
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
}
-package() {
+package_meteoio() {
cd "MeteoIO-$pkgver-src/build"
make DESTDIR="$pkgdir/" install
}
+package_meteoio-examples() {
+ cd "MeteoIO-$pkgver-src/doc/examples/build"
+ find -executable
+ for example in 2D_interpolations coordinates data_converter dem_reading grid2d_reading matrix meteo_reading sun time; do
+ install -Dm755 $example "$pkgdir/usr/bin/meteoio_$example"
+ done
+}
+
sha256sums=('4e5e141c7d56f18b79644116337775c03648e3e011bc1f30bee657afc63fe3ba')