wok annotate python-usb/receipt @ rev 24780

transmission: autoconf 2.70+ bug workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 20:17:02 2022 +0000 (2022-03-19)
parents 1df6fa555414
children
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@24383 18 # What is the latest version available today?
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24383 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 22 }
pascal@24288 23
pascal@15476 24 # Rules to configure and make the package.
pascal@15476 25 compile_rules()
pascal@15476 26 {
pascal@15476 27 python setup.py build &&
pascal@15476 28 python setup.py install --root=$DESTDIR
pascal@15476 29 }
pascal@15476 30
pascal@15476 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15476 32 genpkg_rules()
pascal@15476 33 {
Hans-G?nter@23574 34 cp -a $install/usr $fs
pascal@15476 35 }