35 lines
857 B
Bash
35 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-*
|
|
}
|