void-packages/srcpkgs/davmail/template
q66 b1820d8ece davmail: fix on non-x86_64 systems
next time at least check the contents of the package (and ideally
test) before actually enabling it on all systems
2020-09-04 18:11:33 +02:00

34 lines
857 B
Bash

# Template file for 'davmail'
pkgname=davmail
version=5.5.1
revision=2
_commit=3299
wrksrc=davmail-src-${version}-${_commit}
hostmakedepends="openjdk8 apache-ant"
short_desc="POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway"
maintainer="Anachron <gith@cron.world>"
license="GPL-2.0-only"
homepage="http://davmail.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/davmail/davmail-src-${version}-${_commit}.tgz"
checksum=63e14eeda3fed2a1a5c55f864a8832f8842d597e797ca1e8874c9b66b811f508
do_build() {
. /etc/profile.d/10_openjdk8.sh
. /etc/profile.d/apache-ant.sh
ant jar
}
do_install() {
vinstall dist/davmail.jar 644 usr/share/davmail
vmkdir usr/share/davmail/lib
vcopy "lib/*" usr/share/davmail/lib
vbin src/bin/davmail
}
post_install() {
case "$XBPS_TARGET_MACHINE" in
x86_64) return 0 ;;
esac
rm -f ${DESTDIR}/usr/share/davmail/lib/swt-*
}