55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template file for 'gcr'
|
|
pkgname=gcr
|
|
version=3.28.1
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="$(vopt_enable gir introspection) --disable-update-mime
|
|
--disable-update-icon-cache --disable-schemas-compile $(vopt_enable vala)"
|
|
hostmakedepends="glib-devel gtk-doc intltool pkg-config $(vopt_if vala 'vala')
|
|
libxslt"
|
|
makedepends="gtk+3-devel libgcrypt-devel p11-kit-devel libxslt-devel
|
|
$(vopt_if vala vala)"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="GNOME crypto package"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
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=95204aa2111c301778ebfbe60975ce3ed698c958430ffcc2a785ac5e593d168b
|
|
|
|
# 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
|
|
|
|
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
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|