wok view python-pypdf/receipt @ rev 24561

updated fping (4.2 -> 5.1)
author Hans-G?nter Theisgen
date Fri Feb 25 16:30:10 2022 +0100 (2022-02-25)
parents bd5c540d4199
children 1805f71c5d9f
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pypdf"
4 SOURCE="PyPDF2"
5 VERSION="1.26.0"
6 CATEGORY="development"
7 SHORT_DESC="A Pure-Python library built as a PDF tookit."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://mstamy2.github.io/PyPDF2/"
12 WGET_URL="https://pypi.python.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python python-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
20 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr $fs
34 }
36 # Remove old package.
37 post_install()
38 {
39 [ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] ||
40 rm -rf "$1/var/lib/tazpkg/installed/pypdf"
41 }