davmail: update to 5.5.1

This commit is contained in:
Renato Aguiar 2020-05-14 20:12:10 -07:00 committed by Helmut Pozimski
parent f94f3c0b88
commit aa51fa3e1a

View file

@ -1,30 +1,28 @@
# Template file for 'davmail'
pkgname=davmail
version=5.2.0
version=5.5.1
revision=1
_commit=3299
archs="i686 x86_64"
wrksrc=davmail-src-${version}-${_commit}
hostmakedepends="openjdk8 apache-ant"
short_desc="DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway"
maintainer="Anachron <gith@cron.world>"
license="GPL-2"
license="GPL-2.0-only"
homepage="http://davmail.sourceforge.net"
distfiles="https://github.com/mguessan/${pkgname}/archive/${version}.tar.gz"
checksum=b42745394dfa19fe48b73cca0f3063aa745750b369a8533c65732de8de11ce93
distfiles="${SOURCEFORGE_SITE}/davmail/davmail-src-${version}-${_commit}.tgz"
checksum=63e14eeda3fed2a1a5c55f864a8832f8842d597e797ca1e8874c9b66b811f508
do_build() {
ant
. /etc/profile.d/10_openjdk8.sh
. /etc/profile.d/apache-ant.sh
ant jar
}
do_install() {
_src="dist/${pkgname}-src-${version}-trunk.tgz"
mkdir -p install
tar -xzf "${_src}" -C install
find install -type f -name \*.exe -delete
vmkdir usr/share/$pkgname
mv install/$pkgname-src-${version}-trunk/* "${DESTDIR}"/usr/share/$pkgname
vmkdir usr/bin
ln -s ../share/$pkgname/$pkgname.sh "${DESTDIR}"/usr/bin/$pkgname
vinstall dist/davmail.jar 644 usr/share/davmail
vmkdir usr/share/davmail/lib
vcopy "lib/*" usr/share/davmail/lib
vbin src/bin/davmail
}