wok view mailsync/receipt @ rev 24064

Fix mailsync
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 12 11:07:34 2021 +0000 (2021-06-12)
parents 959269cc91c6
children afae00265386
line source
1 # SliTaz package receipt.
3 PACKAGE="mailsync"
4 VERSION="5.2.1"
5 CATEGORY="network"
6 TAGS="email imap"
7 SHORT_DESC="A way of synchronizing a collection of mailboxes"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://mailsync.sourceforge.net/"
12 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
14 EXTRA_SOURCE_FILES="imap-2007f.tar.gz"
15 WGET_URL2="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$EXTRA_SOURCE_FILES"
17 DEPENDS="libssl"
18 BUILD_DEPENDS="c-client openssl-dev bash"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
24 wget -P $SOURCES_REPOSITORY $WGET_URL2
25 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
26 cd $src/${EXTRA_SOURCE_FILES%%.*}
27 sed -i 's|SSLCFLAGS)|SSLCFLAGS) -I/usr/include/openssl|' \
28 src/osdep/unix/Makefile
29 make slx
30 cd ..
32 sed -i 's|/bin/sh|/bin/bash|' configure
33 ./configure --prefix=/usr \
34 --with-c-client=$src/${EXTRA_SOURCE_FILES%%.*} \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 }