wok annotate python-serial/receipt @ rev 24984

Up ufr2 (2.40-2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:30 2022 +0000 (2022-05-10)
parents 1df6fa555414
children a4947b5c6298
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"
claudinei@3829 6 SHORT_DESC="Multiplataform serial port module for python"
claudinei@3829 7 MAINTAINER="claudinei@slitaz.org"
pascal@15376 8 LICENSE="BSD"
Hans-G?nter@23558 9 WEB_SITE="https://pypi.org/project/pyserial/"
Hans-G?nter@23558 10
Hans-G?nter@23558 11 SOURCE="pyserial"
pankso@16476 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23558 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
claudinei@3829 14
pascal@15376 15 DEPENDS="python"
Hans-G?nter@23558 16 BUILD_DEPENDS="python python-dev python-setuptools"
Hans-G?nter@23558 17
Hans-G?nter@23558 18 HOST_ARCH="i486 arm"
pascal@15376 19
pascal@24383 20 # What is the latest version available today?
pascal@24288 21 current_version()
pascal@24288 22 {
pascal@24383 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 24 }
pascal@24288 25
pascal@24288 26 # Rules to configure and make the package.
claudinei@3829 27 compile_rules()
claudinei@3829 28 {
pascal@15376 29 python setup.py install --root=$DESTDIR
claudinei@3829 30 }
claudinei@3829 31
claudinei@3829 32 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3829 33 genpkg_rules()
claudinei@3829 34 {
Hans-G?nter@23558 35 mkdir -p $fs/usr
Hans-G?nter@23558 36
Hans-G?nter@23558 37 for file in `find $install | grep 'pyc$'`
Hans-G?nter@23558 38 do
claudinei@3829 39 rm $file
Hans-G?nter@23558 40 done
Hans-G?nter@23558 41
Hans-G?nter@23558 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23558 43 cp -a $install/usr/lib $fs/usr
claudinei@3829 44 }