81 lines
2.1 KiB
Bash
81 lines
2.1 KiB
Bash
# Template file for 'gmime'
|
|
pkgname=gmime
|
|
version=3.2.15
|
|
revision=1
|
|
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="gnupg"
|
|
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"
|
|
changelog="https://raw.githubusercontent.com/jstedfast/gmime/master/NEWS"
|
|
distfiles="https://github.com/jstedfast/gmime/releases/download/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=84cd2a481a27970ec39b5c95f72db026722904a2ccf3fdbd57b280cf2d02b5c4
|
|
|
|
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
|
|
}
|
|
|
|
gmime-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
|
|
}
|
|
}
|
|
|
|
gmime3_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
}
|
|
|
|
gmime3-devel_package() {
|
|
depends="${sourcepkg}-devel>=${version}_${revision}"
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
}
|