void-packages/srcpkgs/gmime3/template
2019-10-04 10:12:37 +02:00

51 lines
1.5 KiB
Bash

# Template file for 'gmime3'
pkgname=gmime3
version=3.2.4
revision=1
wrksrc="gmime-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static --enable-crypto $(vopt_enable vala)
$(vopt_enable gir introspection)"
hostmakedepends="pkg-config $(vopt_if vala vala)"
makedepends="glib-devel gpgme-devel libidn2-devel
$(vopt_if vala vala)"
checkdepends="gnupg2"
short_desc="GNOME Core mime parsing library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/jstedfast/gmime"
distfiles="${GNOME_SITE}/gmime/${version%.*}/gmime-${version}.tar.xz"
checksum=249ea7c0e080b067aa9669162c36b181b402f6cf6cebc4999d838c6f1e81d024
# Package build options
build_options="gir vala"
build_options_default="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686|x86_64|armv?l*|aarch64*|ppc|ppc-musl)
configure_args+=" am_cv_func_iconv=yes am_cv_func_iconv_works=yes"
configure_args+=" am_cv_lib_iconv=no ac_cv_have_iconv_detect_h=yes"
configure_args+=" am_cv_proto_iconv_arg1="
pre_build() {
cp ${FILESDIR}/*.h ${wrksrc}
}
;;
esac
gmime3-devel_package() {
depends="libglib-devel zlib-devel ${sourcepkg}>=${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
}
}