# SliTaz package receipt. PACKAGE="mailsync" VERSION="5.2.1" CATEGORY="network" TAGS="email imap" SHORT_DESC="A way of synchronizing a collection of mailboxes" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://mailsync.sourceforge.net/" TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" EXTRA_SOURCE_FILES="imap-2007f.tar.gz" WGET_URL2="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$EXTRA_SOURCE_FILES" DEPENDS="libssl" BUILD_DEPENDS="c-client openssl-dev bash" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mailsync/files/mailsync/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/mailsync/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || wget -P $SOURCES_REPOSITORY $WGET_URL2 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES cd $src/${EXTRA_SOURCE_FILES%%.*} sed -i 's|SSLCFLAGS)|SSLCFLAGS) -I/usr/include/openssl|' \ src/osdep/unix/Makefile make slx cd .. sed -i 's|/bin/sh|/bin/bash|' configure ./configure --prefix=/usr \ --with-c-client=$src/${EXTRA_SOURCE_FILES%%.*} \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }