wok-6.x annotate python-serial/receipt @ rev 21582

Use python-setuptools as bdeps (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 19 19:45:04 2019 +0200 (2019-05-19)
parents 7d672a2330b8
children 3dd35004b9fe
rev   line source
claudinei@3829 1 # SliTaz package receipt.
claudinei@3829 2
claudinei@3829 3 PACKAGE="python-serial"
claudinei@3829 4 SOURCE="pyserial"
pankso@16476 5 VERSION="2.7"
claudinei@3829 6 CATEGORY="development"
claudinei@3829 7 SHORT_DESC="Multiplataform serial port module for python"
claudinei@3829 8 MAINTAINER="claudinei@slitaz.org"
pascal@15376 9 LICENSE="BSD"
pankso@16476 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3829 11 WEB_SITE="http://pyserial.sourceforge.net"
pankso@16476 12 WGET_URL="https://pypi.python.org/packages/source/p/pyserial/$TARBALL"
pankso@16476 13 HOST_ARCH="i486 arm"
claudinei@3829 14
pascal@15376 15 DEPENDS="python"
pascal@21582 16 BUILD_DEPENDS="python-dev python-setuptools"
pascal@15376 17
claudinei@3829 18 # Rules to configure and make the package.
claudinei@3829 19 compile_rules()
claudinei@3829 20 {
pascal@15376 21 python setup.py install --root=$DESTDIR
claudinei@3829 22 }
claudinei@3829 23
claudinei@3829 24 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3829 25 genpkg_rules()
claudinei@3829 26 {
pascal@15376 27 for file in `find $install | grep 'pyc$'`; do
claudinei@3829 28 rm $file
claudinei@3829 29 done
claudinei@3829 30 mkdir -p $fs/usr
pascal@15376 31 cp -a $install/usr/bin $fs/usr
pascal@15376 32 cp -a $install/usr/lib $fs/usr
claudinei@3829 33 }
claudinei@3829 34