diff --git a/dev-libs/json-glib-1.10.8.PKGBUILD b/dev-libs/json-glib-1.10.8.PKGBUILD new file mode 100644 index 0000000..a8c235b --- /dev/null +++ b/dev-libs/json-glib-1.10.8.PKGBUILD @@ -0,0 +1,39 @@ +pkgname=json-glib +pkgver=1.10.8 +pkgdesc="Library providing GLib serialization and deserialization for the JSON format" +homepage="https://wiki.gnome.org/Projects/JsonGlib" +license=("LGPL-2.1+") +sources=("${pkgname}-${pkgver}.tar.xz") +urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}") +sha512sums=("f4ba8660b586a4e738803e4dbfdfcd34fa7ceba9189e7bf3f2b50e21f4d4886f99535ceb3453c89b1d1ae8d96bf4168a135b73b7e1a2dbc46b19e9b710ad56a1") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + local meson_args=( + --prefix=/usr + --buildtype=release + --wrap-mode=nofallback + -D python.bytecompile=1 + -D installed_tests=false + -D introspection=enabled + -D documentation=disabled + -D man=true + -D nls=enabled + -D tests=true + ) + meson setup build "${meson_args[@]}" + meson compile -C build +} + +src_check() { + meson test -C build +} + +src_install() { + meson install -C build --destdir "$pkgdir" +} + +# vim:ft=sh syn=sh et sw=2: