void-packages/srcpkgs/libsecret/template

41 lines
1.2 KiB
Bash

# Template file for 'libsecret'
pkgname=libsecret
version=0.20.4
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) --disable-static
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr $(vopt_enable gir vala)"
hostmakedepends="glib-devel gtk-doc pkg-config libxslt $(vopt_if gir vala)"
makedepends="glib-devel libgcrypt-devel $(vopt_if gir vala)"
short_desc="GObject based library for accessing the Secret Service API"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=325a4c54db320c406711bf2b55e5cb5b6c29823426aa82596a907595abb39d28
# Package build options
build_options="gir"
build_options_default="gir"
# doesn't work in build chroot
do_check() {
:
}
libsecret-devel_package() {
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}