wok view imap-upload/receipt @ rev 24412

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 21:05:34 2022 +0000 (2022-02-09)
parents 36e9807432da
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="imap-upload"
4 VERSION="1.2"
5 CATEGORY="network"
6 SHORT_DESC="Tool for uploading a local mbox file to IMAP4 server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.zip"
9 LICENSE="MIT"
10 WEB_SITE="http://imap-upload.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/imap-upload/files/imap-upload/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/imap-upload/||;s|/.*||;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin
28 echo -e "#!/usr/bin/env python\n" | cat - $src/imap_upload.py \
29 > $fs/usr/bin/imap_upload
30 chmod 755 $fs/usr/bin/imap_upload
31 }