void-packages/srcpkgs/gmime/template
2016-12-14 15:15:56 +01:00

47 lines
1.3 KiB
Bash

# Template file for 'gmime'
pkgname=gmime
version=2.6.21
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-mono --enable-smime --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)"
makedepends="glib-devel gpgme-devel"
short_desc="GNOME Core mime parsing library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.gnome.org/"
distfiles="${GNOME_SITE}/gmime/${version%.*}/gmime-${version}.tar.xz"
checksum=e6f40bb3f11b71f8004e7a91d9e20b2abe3898d211d0d815c061121bbcddb54f
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
case "$XBPS_TARGET_MACHINE" in
i686|x86_64|armv?l*|aarch64*)
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
gmime-devel_package() {
depends="libglib-devel zlib-devel gmime>=${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-*"
fi
}
}