# SliTaz package receipt. PACKAGE="isync" VERSION="1.3.1" CATEGORY="network" TAGS="email imap" SHORT_DESC="IMAP and MailDir mailbox synchronizer." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://isync.sourceforge.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="db openssl" BUILD_DEPENDS="db-dev openssl-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/isync/files/isync/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/isync/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -lpthread" ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make -j 1 && 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 }