void-packages/srcpkgs/json-glib/template
2021-08-25 14:11:01 -03:00

30 lines
889 B
Bash

# Template file for 'json-glib'
pkgname=json-glib
version=1.6.6
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel"
short_desc="JSON parser for GLib-based libraries and applications"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="LGPL-2.1-or-later"
homepage="http://live.gnome.org/JsonGlib"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=96ec98be7a91f6dde33636720e3da2ff6ecbb90e76ccaa49497f31a6855a490e
# Package build options
build_options="gir"
build_options_default="gir"
json-glib-devel_package() {
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}