wok view python-serial/receipt @ rev 23558

updated python-serial (2.7 -> 3.4)
author Hans-G?nter Theisgen
date Tue Apr 07 07:36:59 2020 +0100 (2020-04-07)
parents 814362194a8d
children 1df6fa555414
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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 python setup.py install --root=$DESTDIR
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
31 for file in `find $install | grep 'pyc$'`
32 do
33 rm $file
34 done
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 }