wok-current annotate 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 |
rev | line source |
---|---|
pascal@15884 | 1 # SliTaz package receipt. |
pascal@15884 | 2 |
pascal@15884 | 3 PACKAGE="imap-upload" |
pascal@15884 | 4 VERSION="1.2" |
pascal@15884 | 5 CATEGORY="network" |
pascal@15884 | 6 SHORT_DESC="Tool for uploading a local mbox file to IMAP4 server." |
pascal@15884 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15884 | 8 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@15884 | 9 LICENSE="MIT" |
pascal@25460 | 10 WEB_SITE="https://imap-upload.sourceforge.net/" |
pascal@15884 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15884 | 12 |
pascal@15884 | 13 DEPENDS="python" |
pascal@15884 | 14 BUILD_DEPENDS="" |
pascal@15884 | 15 |
pascal@24412 | 16 # What is the latest version available today? |
pascal@24412 | 17 current_version() |
pascal@24412 | 18 { |
pascal@24412 | 19 wget -O - https://sourceforge.net/projects/imap-upload/files/imap-upload/ 2>/dev/null | \ |
pascal@24412 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24412 | 21 sed '/scope="row/!d;s|.*/imap-upload/||;s|/.*||;q' |
pascal@24412 | 22 } |
pascal@24412 | 23 |
pascal@15884 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15884 | 25 genpkg_rules() |
pascal@15884 | 26 { |
pascal@15884 | 27 mkdir -p $fs/usr/bin |
pascal@15884 | 28 echo -e "#!/usr/bin/env python\n" | cat - $src/imap_upload.py \ |
pascal@15884 | 29 > $fs/usr/bin/imap_upload |
pascal@15884 | 30 chmod 755 $fs/usr/bin/imap_upload |
pascal@15884 | 31 } |