wok-current annotate python-pypdf/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 | 104a2a2e5484 |
children |
rev | line source |
---|---|
claudinei@3384 | 1 # SliTaz package receipt. |
claudinei@3384 | 2 |
claudinei@3384 | 3 PACKAGE="python-pypdf" |
pascal@19652 | 4 SOURCE="PyPDF2" |
pascal@19652 | 5 VERSION="1.26.0" |
claudinei@3384 | 6 CATEGORY="development" |
claudinei@3384 | 7 SHORT_DESC="A Pure-Python library built as a PDF tookit." |
claudinei@3384 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15379 | 9 LICENSE="BSD" |
claudinei@3384 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24976 | 11 WEB_SITE="https://pypi.org/project/PyPDF2/" |
pascal@19652 | 12 WGET_URL="https://pypi.python.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/$TARBALL" |
claudinei@3384 | 13 DEPENDS="python" |
claudinei@3384 | 14 BUILD_DEPENDS="python python-dev" |
claudinei@3384 | 15 |
pascal@24391 | 16 # What is the latest version available today? |
pascal@24391 | 17 current_version() |
pascal@24391 | 18 { |
pascal@24391 | 19 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 20 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 21 } |
pascal@24391 | 22 |
claudinei@3384 | 23 # Rules to configure and make the package. |
claudinei@3384 | 24 compile_rules() |
claudinei@3384 | 25 { |
pascal@15379 | 26 python setup.py install --root=$DESTDIR |
claudinei@3384 | 27 } |
claudinei@3384 | 28 |
claudinei@3384 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3384 | 30 genpkg_rules() |
claudinei@3384 | 31 { |
claudinei@3384 | 32 mkdir -p $fs/usr |
pascal@15379 | 33 cp -a $install/usr $fs |
claudinei@3384 | 34 } |
claudinei@3384 | 35 |
claudinei@3404 | 36 # Remove old package. |
claudinei@3404 | 37 post_install() |
claudinei@3404 | 38 { |
pascal@18730 | 39 [ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] || |
pascal@18730 | 40 rm -rf "$1/var/lib/tazpkg/installed/pypdf" |
claudinei@3404 | 41 } |