2012-09-25 16:03:29 +02:00
|
|
|
# Template file for 'libsecret'
|
|
|
|
pkgname=libsecret
|
2014-03-15 13:02:02 +01:00
|
|
|
version=0.18
|
|
|
|
revision=1
|
2012-09-25 16:03:29 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-19 09:58:51 +01:00
|
|
|
configure_args="--disable-static --with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr"
|
|
|
|
hostmakedepends="pkg-config intltool gnome-doc-utils glib-devel"
|
2013-03-28 09:46:40 +01:00
|
|
|
makedepends="vala-devel>=0.20 libgcrypt-devel"
|
2012-09-25 16:03:29 +02:00
|
|
|
short_desc="GObject based library for accessing the Secret Service API"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
homepage="http://www.gnome.org"
|
2014-03-15 13:02:02 +01:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/0.18/$pkgname-${version}.tar.xz"
|
|
|
|
checksum=0c73aa762dbd1e38ba7b03de350e23ce818cb810b0784375e95ef61e004b02e3
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-02-19 09:58:51 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libsecret-devel_package() {
|
|
|
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
2013-08-26 21:37:54 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-26 21:37:54 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
2014-02-19 09:58:51 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|