void-packages/srcpkgs/gcr/template
maxice8 11582d9911 gcr: update to 3.28.0.
Closes #12440.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-03-19 17:19:22 +01:00

49 lines
1.3 KiB
Bash

# Template file for 'gcr'
pkgname=gcr
version=3.28.0
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) --disable-update-mime
--disable-update-icon-cache --disable-schemas-compile"
hostmakedepends="pkg-config gnome-doc-utils intltool glib-devel
gobject-introspection vala-devel"
makedepends="gtk+3-devel p11-kit-devel libgcrypt-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="GNOME crypto package"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.0-or-later, LGPL-2.1-or-later, GPL-2.0-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/gcr/${version%.*}/gcr-${version}.tar.xz"
checksum=15e175d1da7ec486d59749ba34906241c442898118ce224a7b70bf2e849faf0b
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
do_check() {
# requires X11 server
:
}
post_install() {
vinstall ${FILESDIR}/10-gcr-memlock.conf 644 etc/security/limits.d
}
gcr-devel_package() {
depends="${makedepends} gcr>=${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
}
}