wok annotate s3ql/receipt @ rev 25708
Add shrinkler
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 25 12:01:54 2024 +0000 (2 months ago) |
parents | 0f92b8cc8086 |
children |
rev | line source |
---|---|
pascal@14376 | 1 # SliTaz package receipt. |
pascal@14376 | 2 |
pascal@14376 | 3 PACKAGE="s3ql" |
pascal@14376 | 4 VERSION="1.13.2" |
pascal@14376 | 5 CATEGORY="network" |
pascal@14376 | 6 SHORT_DESC="A file system for Google Storage, Amazon S3 or OpenStack." |
pascal@14376 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14997 | 8 LICENSE="GPL3" |
pascal@14376 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20687 | 10 WEB_SITE="https://github.com/s3ql/s3ql" |
pascal@24982 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
pascal@14376 | 12 |
pascal@14376 | 13 DEPENDS="sqlite python-llfuse python-pyliblzma python-pycryptopp python-apsw" |
pascal@24766 | 14 BUILD_DEPENDS="python-dev sqlite-dev liblzma-dev fuse2-dev attr-dev rsync \ |
pascal@14376 | 15 python-distribute python-llfuse python-pyliblzma python-pycryptopp python-apsw \ |
pascal@14376 | 16 python-pytest python-py python-unittest2" |
pascal@14376 | 17 |
pascal@25602 | 18 # What is the latest version available today? |
pascal@24082 | 19 current_version() |
pascal@24082 | 20 { |
pascal@25602 | 21 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@25602 | 22 sed '/tag\//!d;s|.*tag/s3ql-*||;s|".*||;q' |
pascal@24082 | 23 } |
pascal@24082 | 24 |
pascal@14376 | 25 # Rules to configure and make the package. |
pascal@14376 | 26 compile_rules() |
pascal@14376 | 27 { |
pascal@20621 | 28 sed -i -e 's|import sys|&\nimport ssl|' -e 's|http:|https:|' -e \ |
pascal@20621 | 29 's|.*urlopen(url|\t ssl._create_default_https_context = ssl._create_unverified_context\n&|' \ |
pascal@20621 | 30 util/distribute_setup.py |
pascal@14376 | 31 python setup.py build && |
pascal@14376 | 32 python setup.py test && |
pascal@14376 | 33 python setup.py install --root=$DESTDIR |
pascal@14376 | 34 } |
pascal@14376 | 35 |
pascal@14376 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14376 | 37 genpkg_rules() |
pascal@14376 | 38 { |
pascal@14376 | 39 cp -a $install/usr $fs |
pascal@14376 | 40 } |