void-packages/srcpkgs/gmime3/template

57 lines
1.6 KiB
Bash
Raw Normal View History

2018-12-15 17:53:57 +01:00
# Template file for 'gmime3'
pkgname=gmime3
version=3.2.3
revision=4
2018-12-15 17:53:57 +01:00
wrksrc="gmime-${version}"
build_style=gnu-configure
2019-02-07 05:10:51 +01:00
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)"
2018-12-15 17:53:57 +01:00
checkdepends="gnupg2"
short_desc="GNOME Core mime parsing library"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/jstedfast/gmime"
distfiles="${GNOME_SITE}/gmime/${version%.*}/gmime-${version}.tar.xz"
checksum=6a0875eeb552ab447dd54853a68ced62217d863631048737dd97eaa2713e7311
# Package build options
2019-02-07 05:10:51 +01:00
build_options="gir vala"
2018-12-15 17:53:57 +01:00
2019-02-07 05:10:51 +01:00
case "$XBPS_TARGET_MACHINE" in
2019-02-23 20:32:48 +01:00
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
2019-02-07 05:10:51 +01:00
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
2018-12-15 17:53:57 +01:00
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
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
2019-02-07 05:10:51 +01:00
vmove usr/share/gir-1.0
2018-12-15 17:53:57 +01:00
fi
if [ "$build_option_vala" ]; then
2018-12-15 17:53:57 +01:00
vmove usr/share/vala
fi
}
}