libgit2-glib: add gir and vala build_options, enable on native
required for gitg-3.30
This commit is contained in:
parent
b19219eb5b
commit
ea044adcb8
1 changed files with 15 additions and 4 deletions
|
@ -1,18 +1,25 @@
|
|||
# Template file for 'libgit2-glib'
|
||||
pkgname=libgit2-glib
|
||||
version=0.26.4
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=meson
|
||||
configure_args="-Dintrospection=false -Dvapi=false"
|
||||
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"
|
||||
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.eu>"
|
||||
license="LGPL-2.1"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/GNOME/${pkgname}"
|
||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||
checksum=832ae9617df72a9a4ad42842630e70ee491614832b92bc6ae4c2b814e1e0953e
|
||||
|
||||
build_options="gir vapi"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir vapi"
|
||||
fi
|
||||
|
||||
libgit2-glib-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} $makedepends"
|
||||
short_desc+=" - development files"
|
||||
|
@ -20,5 +27,9 @@ libgit2-glib-devel_package() {
|
|||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue