blob: 75063950e57dfac557c456cf0f1119274d0b1f90 (
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
25
26
27
28
29
30
31
32
33
|
# maintainer: simon chou <sentientcatgmaildotcom>
# contributor: loqs
pkgname=ecbuild-git
pkgver=3.4.1.r0.gd4347cf
pkgrel=1
#pkgdesc="A CMake-based build system"
pkgdesc="ecbuild - ECMWF build system"
arch=('any')
#url="https://github.com/ecmwf/ecbuild"
url="https://github.com/ecmwf/${pkgname%-git}"
license=('APACHE')
makedepends=('git' 'cmake')
#source=("$pkgname::git+https://github.com/ecmwf/ecbuild.git")
source=("git+$url#branch=master")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S ${pkgname%-git} \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
|