wok-current view imap-upload/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | ba7cbdb5749c |
children |
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 }