wok annotate python-serial/receipt @ rev 25247
updated python-wcwidth (0.1.9 -> 0.2.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:22:55 2022 +0100 (2022-07-14) |
parents | 076f424196b2 |
children | b81ceff0b056 |
rev | line source |
---|---|
claudinei@3829 | 1 # SliTaz package receipt. |
claudinei@3829 | 2 |
claudinei@3829 | 3 PACKAGE="python-serial" |
Hans-G?nter@23558 | 4 VERSION="3.4" |
claudinei@3829 | 5 CATEGORY="development" |
Hans-G?nter@25235 | 6 SHORT_DESC="Multiplatform serial port module for python." |
claudinei@3829 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 8 LICENSE="BSD" |
Hans-G?nter@25235 | 9 WEB_SITE="https://pypi.org/project/serial/" |
Hans-G?nter@25235 | 10 REPOLOGY="python-serial" |
Hans-G?nter@23558 | 11 |
Hans-G?nter@23558 | 12 SOURCE="pyserial" |
pankso@16476 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23558 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
claudinei@3829 | 15 |
pascal@15376 | 16 DEPENDS="python" |
Hans-G?nter@23558 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
Hans-G?nter@23558 | 18 |
Hans-G?nter@23558 | 19 HOST_ARCH="i486 arm" |
pascal@15376 | 20 |
pascal@24383 | 21 # What is the latest version available today? |
pascal@24288 | 22 current_version() |
pascal@24288 | 23 { |
pascal@24383 | 24 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 25 } |
pascal@24288 | 26 |
pascal@24288 | 27 # Rules to configure and make the package. |
claudinei@3829 | 28 compile_rules() |
claudinei@3829 | 29 { |
pascal@15376 | 30 python setup.py install --root=$DESTDIR |
claudinei@3829 | 31 } |
claudinei@3829 | 32 |
claudinei@3829 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3829 | 34 genpkg_rules() |
claudinei@3829 | 35 { |
Hans-G?nter@23558 | 36 for file in `find $install | grep 'pyc$'` |
Hans-G?nter@23558 | 37 do |
claudinei@3829 | 38 rm $file |
Hans-G?nter@23558 | 39 done |
Hans-G?nter@23558 | 40 |
Hans-G?nter@25235 | 41 cook_copy_folders bin |
Hans-G?nter@25235 | 42 cook_copy_folders lib |
claudinei@3829 | 43 } |