wok annotate pypdf2/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 9dc7e658f193 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@20102 | 1 # SliTaz package receipt. |
pascal@20102 | 2 |
pascal@20102 | 3 PACKAGE="pypdf2" |
pascal@20102 | 4 VERSION="1.26.0" |
pascal@20102 | 5 CATEGORY="development" |
pascal@20102 | 6 SHORT_DESC="A utility to read and write PDFs with Python." |
pascal@20102 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20102 | 8 LICENSE="BSD" |
pascal@20102 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20102 | 10 WEB_SITE="https://github.com/mstamy2/PyPDF2" |
pascal@20102 | 11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@20102 | 12 |
pascal@20102 | 13 DEPENDS="python" |
pascal@20102 | 14 BUILD_DEPENDS="python" |
pascal@20102 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@20102 | 22 # Rules to configure and make the package. |
pascal@20102 | 23 compile_rules() |
pascal@20102 | 24 { |
pascal@20102 | 25 python setup.py build |
pascal@20102 | 26 python setup.py install --root=$DESTDIR |
pascal@20102 | 27 } |
pascal@20102 | 28 |
pascal@20102 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20102 | 30 genpkg_rules() |
pascal@20102 | 31 { |
pascal@20102 | 32 cp -a $install/usr $fs/ |
pascal@20102 | 33 mkdir -p $install/usr/share/doc |
pascal@20103 | 34 cp $src/[CLM]* $src/README* $install/usr/share/doc |
pascal@20102 | 35 } |