wok annotate mailsync/receipt @ rev 25059

lvmts: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 16:43:48 2022 +0000 (23 months ago)
parents 95c22cb48c90
children 7dd01dedad38
rev   line source
pascal@16934 1 # SliTaz package receipt.
pascal@16934 2
pascal@16934 3 PACKAGE="mailsync"
pascal@16934 4 VERSION="5.2.1"
pascal@16934 5 CATEGORY="network"
Hans-G?nter@24018 6 TAGS="email imap"
pascal@16934 7 SHORT_DESC="A way of synchronizing a collection of mailboxes"
pascal@16934 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16934 9 LICENSE="GPL2"
Hans-G?nter@24018 10 WEB_SITE="http://mailsync.sourceforge.net/"
Hans-G?nter@24018 11
pascal@16934 12 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
pascal@16934 13 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
pascal@16934 14 EXTRA_SOURCE_FILES="imap-2007f.tar.gz"
Hans-G?nter@24018 15 WGET_URL2="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$EXTRA_SOURCE_FILES"
pascal@16934 16
pascal@16934 17 DEPENDS="libssl"
pascal@24064 18 BUILD_DEPENDS="c-client openssl-dev bash"
pascal@16934 19
pascal@24402 20 # What is the latest version available today?
pascal@24402 21 current_version()
pascal@24402 22 {
pascal@24402 23 wget -O - https://sourceforge.net/projects/mailsync/files/mailsync/ 2>/dev/null | \
pascal@24402 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 25 sed '/scope="row/!d;s|.*/mailsync/||;s|/.*||;q'
pascal@24402 26 }
pascal@24402 27
pascal@16934 28 # Rules to configure and make the package.
pascal@16934 29 compile_rules()
pascal@16934 30 {
pascal@16934 31 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
pascal@16934 32 wget -P $SOURCES_REPOSITORY $WGET_URL2
pascal@16934 33 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
pascal@16934 34 cd $src/${EXTRA_SOURCE_FILES%%.*}
pascal@16934 35 sed -i 's|SSLCFLAGS)|SSLCFLAGS) -I/usr/include/openssl|' \
pascal@16934 36 src/osdep/unix/Makefile
pascal@16934 37 make slx
pascal@16934 38 cd ..
Hans-G?nter@24018 39
pascal@24064 40 sed -i 's|/bin/sh|/bin/bash|' configure
Hans-G?nter@24018 41 ./configure --prefix=/usr \
Hans-G?nter@24018 42 --with-c-client=$src/${EXTRA_SOURCE_FILES%%.*} \
pascal@16934 43 $CONFIGURE_ARGS &&
Hans-G?nter@24018 44 make &&
Hans-G?nter@24018 45 make DESTDIR=$DESTDIR install
pascal@16934 46 }
pascal@16934 47
pascal@16934 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16934 49 genpkg_rules()
pascal@16934 50 {
pascal@16934 51 mkdir -p $fs/usr
Hans-G?nter@24018 52 cp -a $install/usr/bin $fs/usr
pascal@16934 53 }