2015-11-30 16:36:40 +01:00
|
|
|
# Description: serialization and deserialization of JSON objects
|
2021-01-29 12:18:16 +00:00
|
|
|
# URL: https://wiki.gnome.org/action/show/Projects/JsonGlib
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: glib meson ninja gobject-introspection
|
2015-11-30 16:36:40 +01:00
|
|
|
|
|
|
|
name=json-glib
|
2021-08-28 12:14:13 +02:00
|
|
|
version=1.6.6
|
2015-11-30 16:36:40 +01:00
|
|
|
release=1
|
2020-09-13 17:50:09 +02:00
|
|
|
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
|
2015-11-30 16:36:40 +01:00
|
|
|
|
|
|
|
build() {
|
2021-01-29 12:18:16 +00:00
|
|
|
sed "/^subdir('po')/d" -i $name-$version/meson.build
|
2015-11-30 16:36:40 +01:00
|
|
|
|
2021-01-29 12:18:16 +00:00
|
|
|
meson setup build $name-$version \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
2021-08-20 21:13:47 +02:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2021-01-29 12:18:16 +00:00
|
|
|
-D gtk_doc=disabled \
|
|
|
|
-D tests=false
|
2015-11-30 16:36:40 +01:00
|
|
|
|
2021-01-29 12:18:16 +00:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2015-11-30 16:36:40 +01:00
|
|
|
}
|