wok annotate python-pypdf/receipt @ rev 20226
grub: add ext4 patch (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 01 11:52:40 2018 +0100 (2018-03-01) |
parents | 9e01bc6321ea |
children | 104a2a2e5484 |
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@19652 | 11 WEB_SITE="https://mstamy2.github.io/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 |
claudinei@3384 | 16 # Rules to configure and make the package. |
claudinei@3384 | 17 compile_rules() |
claudinei@3384 | 18 { |
pascal@15379 | 19 python setup.py install --root=$DESTDIR |
claudinei@3384 | 20 } |
claudinei@3384 | 21 |
claudinei@3384 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3384 | 23 genpkg_rules() |
claudinei@3384 | 24 { |
claudinei@3384 | 25 mkdir -p $fs/usr |
pascal@15379 | 26 cp -a $install/usr $fs |
claudinei@3384 | 27 } |
claudinei@3384 | 28 |
claudinei@3404 | 29 # Remove old package. |
claudinei@3404 | 30 post_install() |
claudinei@3404 | 31 { |
pascal@18730 | 32 [ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] || |
pascal@18730 | 33 rm -rf "$1/var/lib/tazpkg/installed/pypdf" |
claudinei@3404 | 34 } |