core/jsoncpp/Pkgfile

23 lines
597 B
Plaintext

# Description: C++ library for interacting with JSON
# URL: https://github.com/open-source-parsers/jsoncpp
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=jsoncpp
version=1.9.5
release=1
source=(https://github.com/open-source-parsers/jsoncpp/archive/$version/$name-$version.tar.gz)
build() {
echo ${version} > $name-$version/version
meson setup $name-$version build \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
--default-library shared
meson compile -C build
DESTDIR=$PKG meson install -C build
}