wok annotate davmail/receipt @ rev 25041
Up fatattr (1.0.1), puzzles (20220128)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 27 17:15:46 2022 +0000 (2022-05-27) |
parents | eb8067417980 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@13591 | 1 # SliTaz package receipt. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="davmail" |
pascal@13591 | 4 VERSION="4.0.0-2016" |
pascal@13591 | 5 CATEGORY="network" |
pascal@13591 | 6 SHORT_DESC="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway" |
pascal@13591 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
pascal@13591 | 9 TARBALL="$PACKAGE-src-$VERSION.tgz" |
pascal@13591 | 10 WEB_SITE="http://davmail.sourceforge.net/" |
pascal@13591 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@13591 | 12 |
pascal@13591 | 13 DEPENDS="java-jre" |
pascal@13591 | 14 BUILD_DEPENDS="apache-ant java-jdk" |
pascal@13591 | 15 |
pascal@24082 | 16 current_version() |
pascal@24082 | 17 { |
pascal@24082 | 18 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/ 2>/dev/null | \ |
pascal@24082 | 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 20 sed "/$PACKAGE-srconly/!d;s|.*$PACKAGE-srconly-\\(.*\\).tgz.*\".*|\\1|;q" |
pascal@24082 | 21 } |
pascal@24082 | 22 |
pascal@13591 | 23 # Rules to configure and make the package. |
pascal@13591 | 24 compile_rules() |
pascal@13591 | 25 { |
pascal@13591 | 26 cd $src |
pascal@13591 | 27 export JAVA_HOME=/usr/lib/jvm/java-icedtea |
pascal@13591 | 28 ant |
pascal@13591 | 29 } |
pascal@13591 | 30 |
pascal@13591 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 32 genpkg_rules() |
pascal@13591 | 33 { |
pascal@13591 | 34 mkdir -p $fs/usr/share/davmail $fs/usr/share/applications \ |
pascal@13591 | 35 $fs/usr/bin |
pascal@13591 | 36 cp -a $src/dist/lib $fs/usr/share/davmail |
pascal@13591 | 37 cp -a $src/dist/davmail.png $fs/usr/share/davmail |
pascal@13591 | 38 cp -a $src/dist/davmail.jar $fs/usr/share/davmail |
pascal@13591 | 39 cp -a $src/dist/davmail.sh $fs/usr/share/davmail |
pascal@13591 | 40 ln -s /usr/share/davmail/davmail.sh $fs/usr/bin/davmail |
pascal@13591 | 41 sed -i 's|/bin/bash|/bin/sh|' $fs/usr/share/davmail/davmail.sh |
pascal@13591 | 42 cp -a $src/dist/davmail.desktop $fs/usr/share/applications |
pascal@13591 | 43 } |