mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
36 lines
1,007 B
Text
36 lines
1,007 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=jsoncpp
|
|
pkgver=1.9.4
|
|
pkgrel=0
|
|
pkgdesc="JSON C++ library"
|
|
url="https://github.com/open-source-parsers/jsoncpp"
|
|
arch="all"
|
|
license="Public-Domain"
|
|
makedepends="meson"
|
|
subpackages="$pkgname-static $pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz"
|
|
|
|
build() {
|
|
# we cannot use cmake since jsoncpp is a dependency for cmake which
|
|
# means we would get circular buildtime deps
|
|
abuild-meson \
|
|
--default-library=both \
|
|
build
|
|
meson compile ${JOBS:+-j ${JOBS}} -C build
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild -v -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C build
|
|
}
|
|
|
|
static() {
|
|
pkgdesc="JsonCpp static library"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="adfd4afbdf6b79bd37edcf0e248f07864994f1c4bcb7431f3b44102490ce467f72381908066655fa486dec12f467af0a11f42f859bbf719895974c7339db7d22 jsoncpp-1.9.4.tar.gz"
|