68 lines
1.7 KiB
Bash
68 lines
1.7 KiB
Bash
# Template file for 'gmime3'
|
|
pkgname=gmime3
|
|
version=3.2.7
|
|
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=2aea96647a468ba2160a64e17c6dc6afe674ed9ac86070624a3f584c10737d44
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
pre_configure() {
|
|
[ -z "$CROSS_BUILD" ] && return 0
|
|
|
|
configure_args+=" ac_cv_have_iconv_detect_h=yes"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
cp ${FILESDIR}/musl-iconv-detect.h ${wrksrc}/iconv-detect.h
|
|
else
|
|
cp ${FILESDIR}/iconv-detect.h ${wrksrc}/iconv-detect.h
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
make check VERBOSITY=-vv |
|
|
awk '
|
|
1
|
|
# utf-8 to iso-2022-jp is stateless
|
|
/GMimeFilterCharset.*utf-8.*iso-2022-jp/ { next }
|
|
# euc-kr has not been supported
|
|
/euc-kr to UTF-8/ { next }
|
|
$NF == "FAILED" { e = 1 }
|
|
END { exit e }
|
|
'
|
|
else
|
|
make check
|
|
fi
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|