void-packages/srcpkgs/libgit2-glib/template

41 lines
1.1 KiB
Bash

# Template file for 'libgit2-glib'
pkgname=libgit2-glib
version=0.27.8
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala vala)"
makedepends="libglib-devel libgit2-devel python-gobject-devel"
short_desc="Glib wrapper library around libgit2"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/GNOME/${pkgname}"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=9155b2caf0f882cb2e3ef94bb2390af416c4febc981485bffce6c89cfed7e50e
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
libgit2-glib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libglib-devel libgit2-devel"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}