wok-6.x view davmail/receipt @ rev 25461
foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 09:44:06 2022 +0000 (2022-09-28) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="davmail"
4 VERSION="4.0.0-2016"
5 CATEGORY="network"
6 SHORT_DESC="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-src-$VERSION.tgz"
10 WEB_SITE="https://davmail.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="java-jre"
14 BUILD_DEPENDS="apache-ant java-jdk"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed "/$PACKAGE-srconly/!d;s|.*$PACKAGE-srconly-\\(.*\\).tgz.*\".*|\\1|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 export JAVA_HOME=/usr/lib/jvm/java-icedtea
29 ant
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/davmail $fs/usr/share/applications \
36 $fs/usr/bin
37 cp -a $src/dist/lib $fs/usr/share/davmail
38 cp -a $src/dist/davmail.png $fs/usr/share/davmail
39 cp -a $src/dist/davmail.jar $fs/usr/share/davmail
40 cp -a $src/dist/davmail.sh $fs/usr/share/davmail
41 ln -s /usr/share/davmail/davmail.sh $fs/usr/bin/davmail
42 sed -i 's|/bin/bash|/bin/sh|' $fs/usr/share/davmail/davmail.sh
43 cp -a $src/dist/davmail.desktop $fs/usr/share/applications
44 }