wok view python-serial/receipt @ rev 24347

Up expat (2.4.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 09:41:22 2022 +0000 (2022-02-02)
parents 3dd35004b9fe
children 076f424196b2
line source
1 # SliTaz package receipt.
3 PACKAGE="python-serial"
4 VERSION="3.4"
5 CATEGORY="development"
6 SHORT_DESC="Multiplataform serial port module for python"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/pyserial/"
11 SOURCE="pyserial"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev python-setuptools"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
23 }
25 # Rules to configure and make the package.
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
37 for file in `find $install | grep 'pyc$'`
38 do
39 rm $file
40 done
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 }