36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'libgit2-glib'
|
|
pkgname=libgit2-glib
|
|
version=0.27.7
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dintrospection=$(vopt_if gir true false)
|
|
-Dvapi=$(vopt_if vapi true false)"
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libglib-devel libgit2-devel python-gobject-devel
|
|
$(vopt_if gir gobject-introspection) $(vopt_if vapi vala-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=224a0bc1d902729b42ca9424db545c460ff8aaeb08addc2b0a01bf235b4c9d6e
|
|
|
|
build_options="gir vapi"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir vapi"
|
|
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
|
|
vmove usr/share/vala
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|