wok annotate python-pyserial/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents f2abfbf087ed
children 9ef0ccfe6096
rev   line source
pascal@18301 1 # SliTaz package receipt.
pascal@18301 2
pascal@18301 3 PACKAGE="python-pyserial"
Hans-G?nter@23544 4 VERSION="3.4"
pascal@18301 5 CATEGORY="development"
pascal@18301 6 SHORT_DESC="Python Serial Port Extension."
pascal@18301 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18301 8 LICENSE="PSL"
Hans-G?nter@23544 9 WEB_SITE="https://pypi.python.org/pypi/pyserial"
Hans-G?nter@23544 10
Hans-G?nter@23544 11 SOURCE="pyserial"
pascal@18301 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23544 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@18301 14
pascal@18301 15 DEPENDS="python"
pascal@18301 16 BUILD_DEPENDS="python"
pascal@18301 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@18301 25 # Rules to configure and make the package.
pascal@18301 26 compile_rules()
pascal@18301 27 {
pascal@18301 28 python setup.py build &&
pascal@18301 29 python setup.py install --root=$DESTDIR
pascal@18301 30 }
pascal@18301 31
pascal@18301 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18301 33 genpkg_rules()
pascal@18301 34 {
Hans-G?nter@23544 35 cp -a $install/usr $fs
pascal@18301 36 }