summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Legner2018-11-21 08:52:43 +0100
committerSimon Legner2018-11-21 08:52:43 +0100
commit3f95d8b89e86fe266b608ea4b45727a3e3775116 (patch)
tree45396c6728acc463d60f60462aa812925d27f335
parent01c71c4e1fb2af5cf5ab62ed79d66aa4d8d6c297 (diff)
downloadaur-3f95d8b89e86fe266b608ea4b45727a3e3775116.tar.gz
2.7.0-4: build meteoio-docs
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
2 files changed, 16 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4845b8631ba..955d8b78035 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = meteoio
pkgdesc = Make data access easy and safe for numerical simulations in environmental sciences
pkgver = 2.7.0
- pkgrel = 3
+ pkgrel = 4
url = https://models.slf.ch/p/meteoio/
arch = x86_64
license = LGPL3
makedepends = cmake
- optdepends = doxygen: documentation
+ makedepends = doxygen
source = https://models.slf.ch/p/meteoio/downloads/get/MeteoIO-2.7.0-src.tar.gz
sha256sums = 4e5e141c7d56f18b79644116337775c03648e3e011bc1f30bee657afc63fe3ba
@@ -14,3 +14,5 @@ pkgname = meteoio
pkgname = meteoio-examples
+pkgname = meteoio-docs
+
diff --git a/PKGBUILD b/PKGBUILD
index 2526d71a5a0..2f771da2e18 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,22 @@
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
pkgbase=meteoio
-pkgname=('meteoio' 'meteoio-examples')
+pkgname=('meteoio' 'meteoio-examples' 'meteoio-docs')
pkgver=2.7.0
-pkgrel=3
+pkgrel=4
pkgdesc="Make data access easy and safe for numerical simulations in environmental sciences"
arch=('x86_64')
url="https://models.slf.ch/p/meteoio/"
license=('LGPL3')
-makedepends=('cmake')
-optdepends=('doxygen: documentation')
+makedepends=('cmake' 'doxygen')
source=("https://models.slf.ch/p/meteoio/downloads/get/MeteoIO-$pkgver-src.tar.gz")
build() {
cd "MeteoIO-$pkgver-src"
mkdir -p build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DOC=1 .
make
- cd ../doc/examples
+ make doc
+ cd doc/examples
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
@@ -37,4 +36,10 @@ package_meteoio-examples() {
done
}
+package_meteoio-docs() {
+ cd "MeteoIO-$pkgver-src/doc/html"
+ mkdir -p "$pkgdir/usr/share/doc/meteoio"
+ cp -r * "$pkgdir/usr/share/doc/meteoio"
+}
+
sha256sums=('4e5e141c7d56f18b79644116337775c03648e3e011bc1f30bee657afc63fe3ba')