wok annotate python-usb/receipt @ rev 24300

updated tcsh (6.22.02 -> 6.23.02)
author Hans-G?nter Theisgen
date Sat Jan 15 16:54:59 2022 +0100 (2022-01-15)
parents 36c1f0aa6f5d
children 076f424196b2
rev   line source
pascal@15476 1 # SliTaz package receipt.
pascal@15476 2
pascal@15476 3 PACKAGE="python-usb"
Hans-G?nter@23574 4 VERSION="1.0.2"
pascal@15476 5 CATEGORY="development"
pascal@15476 6 SHORT_DESC="Python bindings for USB access."
pascal@15476 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15476 8 LICENSE="BSD"
Hans-G?nter@23574 9 WEB_SITE="https://pypi.org/project/pyusb"
pascal@15476 10
Hans-G?nter@23574 11 SOURCE="pyusb"
Hans-G?nter@23574 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23574 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
Hans-G?nter@23574 14
Hans-G?nter@23574 15 DEPENDS="libusb python"
Hans-G?nter@23574 16 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@15476 17
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24288 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 21 }
pascal@24288 22
pascal@15476 23 # Rules to configure and make the package.
pascal@15476 24 compile_rules()
pascal@15476 25 {
pascal@15476 26 python setup.py build &&
pascal@15476 27 python setup.py install --root=$DESTDIR
pascal@15476 28 }
pascal@15476 29
pascal@15476 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15476 31 genpkg_rules()
pascal@15476 32 {
Hans-G?nter@23574 33 cp -a $install/usr $fs
pascal@15476 34 }