void-packages/srcpkgs/gcr/template

57 lines
1.5 KiB
Text
Raw Normal View History

2012-03-21 09:57:10 +00:00
# Template file for 'gcr'
pkgname=gcr
2014-05-17 08:32:43 +00:00
version=3.12.2
revision=1
2012-03-21 09:57:10 +00:00
build_style=gnu-configure
configure_args="--disable-update-mime
2013-09-26 13:19:45 +00:00
--disable-update-icon-cache --disable-schemas-compile"
hostmakedepends="libtool which pkg-config intltool gnome-doc-utils
2014-05-13 06:31:27 +00:00
libtasn1-tools gnupg perl-XML-Parser glib-devel"
2013-09-26 13:19:45 +00:00
makedepends="gtk+3-devel p11-kit-devel libgcrypt-devel vala-devel"
depends="hicolor-icon-theme desktop-file-utils"
2012-03-21 09:57:10 +00:00
short_desc="GNOME crypto package"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2, LGPL-2.1"
2012-09-25 13:48:13 +00:00
homepage="http://www.gnome.org"
2013-09-26 13:19:45 +00:00
distfiles="${GNOME_SITE}/gcr/${version%.*}/gcr-${version}.tar.xz"
2014-05-17 08:32:43 +00:00
checksum=456e20615ab178aa92eeabdea64dcce535c10d5af189171d9375291a2447d21c
2012-03-21 09:57:10 +00: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
pre_configure() {
libtoolize -f
}
post_install() {
vinstall ${FILESDIR}/10-gcr-memlock.conf 644 etc/security/limits.d
}
gcr-devel_package() {
2014-02-19 14:35:16 +00:00
depends="libglib-devel p11-kit-devel gtk+3-devel gcr>=${version}_${revision}"
2013-05-05 01:35:03 +00:00
short_desc+=" - development files"
replaces="gnome-keyring-devel<3.3.92"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-09-26 13:19:45 +00:00
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
}
}