wok view python-pypdf/receipt @ rev 24307

slitaz-boot-scripts: update
author Richard Dunbar <mojo@slitaz.org>
date Mon Jan 17 12:42:24 2022 -0500 (2022-01-17)
parents 9e01bc6321ea
children 104a2a2e5484
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 python setup.py install --root=$DESTDIR
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr
26 cp -a $install/usr $fs
27 }
29 # Remove old package.
30 post_install()
31 {
32 [ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] ||
33 rm -rf "$1/var/lib/tazpkg/installed/pypdf"
34 }