54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
# Template file for 'gcr'
|
|
pkgname=gcr
|
|
version=3.41.0
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
hostmakedepends="gettext glib-devel gnupg2 gtk-doc intltool pkg-config openssh
|
|
libxslt $(vopt_if vala vala)"
|
|
makedepends="gtk+3-devel libgcrypt-devel libsecret-devel p11-kit-devel libxslt-devel
|
|
$(vopt_if vala vala)"
|
|
depends="desktop-file-utils hicolor-icon-theme gnupg2"
|
|
short_desc="GNOME crypto package"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.0-or-later, LGPL-2.1-or-later, GPL-2.0-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/gcr"
|
|
distfiles="${GNOME_SITE}/gcr/${version%.*}/gcr-${version}.tar.xz"
|
|
checksum=0909fc49ea8ad4832d27564ff2fd1dc666696e2a07c73941c48829e60572da01
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args="-Dgtk_doc=false"
|
|
fi
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
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"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|