mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
community/jsoncpp: modernise
This commit is contained in:
parent
d591d5f541
commit
3bf4f53300
@ -1,7 +1,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=jsoncpp
|
||||
pkgver=1.9.5
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="JSON C++ library"
|
||||
url="https://github.com/open-source-parsers/jsoncpp"
|
||||
arch="all"
|
||||
@ -11,26 +11,18 @@ 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 -C build
|
||||
. output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
check() {
|
||||
meson test --no-rebuild --print-errorlogs -C build
|
||||
meson test --no-rebuild --print-errorlogs -C output
|
||||
}
|
||||
|
||||
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/
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user