wok-next view davmail/receipt @ rev 15625

nut: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 08 16:00:02 2013 +0000 (2013-12-08)
parents 4aed2b24febc
children d5aab818505e
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="http://davmail.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="java-jre"
14 BUILD_DEPENDS="apache-ant java-jdk"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 export JAVA_HOME=/usr/lib/jvm/java-icedtea
21 ant
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/davmail $fs/usr/share/applications \
28 $fs/usr/bin
29 cp -a $src/dist/lib $fs/usr/share/davmail
30 cp -a $src/dist/davmail.png $fs/usr/share/davmail
31 cp -a $src/dist/davmail.jar $fs/usr/share/davmail
32 cp -a $src/dist/davmail.sh $fs/usr/share/davmail
33 ln -s /usr/share/davmail/davmail.sh $fs/usr/bin/davmail
34 sed -i 's|/bin/bash|/bin/sh|' $fs/usr/share/davmail/davmail.sh
35 cp -a $src/dist/davmail.desktop $fs/usr/share/applications
36 }