summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c7abe00aee80ebbe9267a57ba6a400b1552cbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Em Zhan <zqianem@gmail.com>

pkgname=nceplibs-g2c
_pkgname=NCEPLIBS-g2c
pkgver=2.0.0
pkgrel=1
pkgdesc="C decoder/encoder routines for GRIB edition 2"
arch=('x86_64')
url="https://github.com/NOAA-EMC/NCEPLIBS-g2c"
license=('LGPL-3.0-only')
depends=('jasper' 'libpng' 'zlib' 'openjpeg2' 'libaec')
makedepends=('cmake')
source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('39c23bf1219c60101548c8525e3a879c84119558f768081779d404a8caf4cec9')
options=('staticlibs')

build() {
  cmake -B build -S "$srcdir/$_pkgname-$pkgver" -DCMAKE_INSTALL_PREFIX="/usr"
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}