vp-build/srcpkgs/libsecret/template

40 lines
1.1 KiB
Bash

# Template file for 'libsecret'
pkgname=libsecret
version=0.18.6
revision=2
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) --disable-static
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="glib-devel gtk-doc intltool pkg-config libxslt
$(vopt_if gir 'gobject-introspection')"
makedepends="libgcrypt-devel vala-devel"
short_desc="GObject based library for accessing the Secret Service API"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-${version}.tar.xz"
checksum=5efbc890ba41a323ffe0599cd260fd12bd8eb62a04aa1bd1b2762575d253d66f
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
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
}
}