41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'libxmlb'
|
|
pkgname=libxmlb
|
|
version=0.1.8
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dgtkdoc=false -Dtests=false -Dstemmer=false
|
|
-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="libglib-devel libuuid-devel"
|
|
short_desc="Library to help create and query binary XML blobs"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/hughsie/libxmlb"
|
|
distfiles="https://github.com/hughsie/libxmlb/archive/${version}.tar.gz"
|
|
checksum=ed0ccede0cda9bcf76598f945d34be218840f60520e3e4fe508fca2b5e8e1d3f
|
|
|
|
build_options="gir"
|
|
|
|
post_install() {
|
|
rm -rf "${DESTDIR}"/usr/share/installed-tests
|
|
}
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
libxmlb-devel_package() {
|
|
depends="libxmlb-${version}_${revision} libglib-devel libuuid-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_options_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|