diff options
author | graziano.giuliani | 2017-03-26 20:46:19 +0200 |
---|---|---|
committer | graziano.giuliani | 2017-03-26 20:46:19 +0200 |
commit | ed3d1294f8fee1316616048c38623691d55d94f3 (patch) | |
tree | 0b3f1bf4833f4a733cc69c9b52b8b0ac6ac28e21 | |
download | aur-ed3d1294f8fee1316616048c38623691d55d94f3.tar.gz |
new package
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f76a843f937 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Sun Mar 26 18:46:01 UTC 2017 +pkgbase = odb_api + pkgdesc = ECMWF Observational data library + pkgver = 0.16.2 + pkgrel = 1 + url = https://software.ecmwf.int/wiki/display/ODBAPI/ODB+API+Home + arch = i686 + arch = x86_64 + groups = science + license = Apache + makedepends = boost + makedepends = cmake + makedepends = netcdf + makedepends = eccodes + options = staticlibs + source = https://software.ecmwf.int/wiki/download/attachments/61117379/odb_api_bundle-0.16.2-Source.tar.gz + md5sums = b77044ab2c0e5ef860439bcf27e1e173 + +pkgname = odb_api + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5aa26ab2a867 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Graziano Giuliani <graziano.giuliani@gmail.com> +pkgname=odb_api +pkgver=0.16.2 +pkgrel=1 +pkgdesc="ECMWF Observational data library" +arch=(i686 x86_64) +url="https://software.ecmwf.int/wiki/display/ODBAPI/ODB+API+Home" +license=('Apache') +groups=(science) +depends=() +makedepends=(boost cmake netcdf eccodes) +optdepend=(git openmpi lapack cuda doxygen bison flex eigen armadillo viennacl libaio intel-mkl python) +options=('staticlibs') +source=(https://software.ecmwf.int/wiki/download/attachments/61117379/${pkgname}_bundle-${pkgver}-Source.tar.gz) +md5sums=('b77044ab2c0e5ef860439bcf27e1e173') + +build() { + cd ${srcdir}/${pkgname}_bundle-${pkgver}-Source + mkdir -p build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_NETCDF=ON \ + -DENABLE_FORTRAN=ON \ + -DCMAKE_BUILD_TYPE=production .. + make +} + +package() { + cd ${srcdir}/${pkgname}_bundle-${pkgver}-Source/build + make DESTDIR=${pkgdir} install +} + +# vim:set ts=2 sw=2 et: |