void-packages/srcpkgs/libsecret/template
2019-03-02 14:41:56 -03:00

42 lines
1.3 KiB
Bash

# Template file for 'libsecret'
pkgname=libsecret
version=0.18.8
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 vala)"
hostmakedepends="glib-devel gtk-doc pkg-config libxslt $(vopt_if vala vala)"
makedepends="libgcrypt-devel $(vopt_if vala vala) libglib-devel"
short_desc="GObject based library for accessing the Secret Service API"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=3bfa889d260e0dbabcf5b9967f2aae12edcd2ddc9adc365de7a5cc840c311d15
# Package build options
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
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
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}