wok view imap-upload/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents ba7cbdb5749c
children d3556b8f5c3d
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="https://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 }