wok annotate python-qrcode/receipt @ rev 25057

linux-libre: fix linux-libre-3.18.129-gnu-slitaz.config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 11:05:30 2022 +0000 (2022-06-06)
parents a32589fd69e7
children
rev   line source
pascal@15477 1 # SliTaz package receipt.
pascal@15477 2
pascal@15477 3 PACKAGE="python-qrcode"
Hans-G?nter@23551 4 VERSION="6.1"
pascal@15477 5 CATEGORY="development"
pascal@15477 6 SHORT_DESC="Python QR Code image generator."
pascal@15477 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15477 8 LICENSE="PSL"
Hans-G?nter@23551 9 WEB_SITE="https://pypi.python.org/pypi/qrcode"
Hans-G?nter@23551 10
Hans-G?nter@23551 11 SOURCE="qrcode"
pascal@15477 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23551 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@15477 14
pascal@15502 15 DEPENDS="python python-pil python-six"
Hans-G?nter@23551 16 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@15477 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 23 }
pascal@24391 24
pascal@15477 25 # Rules to configure and make the package.
pascal@15477 26 compile_rules()
pascal@15477 27 {
pascal@15477 28 python setup.py build &&
pascal@15477 29 python setup.py install --root=$DESTDIR
pascal@15477 30 }
pascal@15477 31
pascal@15477 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15477 33 genpkg_rules()
pascal@15477 34 {
Hans-G?nter@23551 35 cp -a $install/usr $fs
pascal@15477 36 }