void-packages/srcpkgs/libgit2-glib/template

42 lines
1.1 KiB
Bash

# Template file for 'libgit2-glib'
pkgname=libgit2-glib
version=0.99.0.1
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if gir true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir vala)"
makedepends="libglib-devel libgit2-devel python-gobject-devel"
short_desc="Glib wrapper library around libgit2"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/GNOME/libgit2-glib"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=22dccc7aa9ff6f29edf50352b17d58c3f9289ba1cfa7952f70d7feb48676f10c
build_options="gir"
build_options_default="gir"
CPPFLAGS="-UG_DISABLE_ASSERT"
post_patch() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
vsed -i "s,TEST.*encoding.*,/* & */," tests/repository.c
fi
}
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_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}