gcab: build gir
This commit is contained in:
parent
e803b0c83c
commit
aa4da6c4e0
|
@ -1,11 +1,12 @@
|
||||||
# Template file for 'gcab'
|
# Template file for 'gcab'
|
||||||
pkgname=gcab
|
pkgname=gcab
|
||||||
version=1.4
|
version=1.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dintrospection=false -Ddocs=false"
|
build_helper=gir
|
||||||
hostmakedepends="git glib-devel intltool pkg-config"
|
configure_args="$(vopt_bool gir introspection) -Ddocs=false"
|
||||||
makedepends="glib-devel"
|
hostmakedepends="glib-devel intltool pkg-config $(vopt_if gir vala)"
|
||||||
|
makedepends="libglib-devel $(vopt_if gir vala)"
|
||||||
short_desc="GObject library to create cabinet files"
|
short_desc="GObject library to create cabinet files"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
|
@ -13,6 +14,10 @@ homepage="https://wiki.gnome.org/msitools"
|
||||||
distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=67a5fa9be6c923fbc9197de6332f36f69a33dadc9016a2b207859246711c048f
|
checksum=67a5fa9be6c923fbc9197de6332f36f69a33dadc9016a2b207859246711c048f
|
||||||
|
|
||||||
|
build_options="gir"
|
||||||
|
build_options_default="gir"
|
||||||
|
|
||||||
|
|
||||||
gcab-devel_package() {
|
gcab-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} glib-devel"
|
depends="${sourcepkg}>=${version}_${revision} glib-devel"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
@ -20,5 +25,9 @@ gcab-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
|
if [ "$build_option_gir" ]; then
|
||||||
|
vmove usr/share/gir-1.0
|
||||||
|
vmove usr/share/vala
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue