opt/json-glib/Pkgfile

27 lines
702 B
Plaintext
Raw Normal View History

2015-11-30 16:36:40 +01:00
# Description: serialization and deserialization of JSON objects
2021-01-29 13:18:16 +01:00
# URL: https://wiki.gnome.org/action/show/Projects/JsonGlib
# Maintainer: Tim Biermann, tbier at posteo dot de
2023-09-16 21:33:27 +02:00
# Depends on: gobject-introspection
2015-11-30 16:36:40 +01:00
name=json-glib
2023-09-16 21:33:27 +02:00
version=1.8.0
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 13:18:16 +01:00
sed "/^subdir('po')/d" -i $name-$version/meson.build
2015-11-30 16:36:40 +01:00
2021-01-29 13:18:16 +01: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 13:18:16 +01:00
-D gtk_doc=disabled \
2023-09-16 21:33:27 +02:00
-D tests=false \
-D nls=disabled
2015-11-30 16:36:40 +01:00
2021-01-29 13:18:16 +01:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2015-11-30 16:36:40 +01:00
}