# HG changeset patch # User Claudinei Pereira # Date 1249582907 0 # Node ID 95bff0faad457937a7a705b0d9ae231636240bf4 # Parent 54c42486972ba46029459e97a0a14e7709ab1dc2 Add: python-serial (2.5-rc1) diff -r 54c42486972b -r 95bff0faad45 python-serial/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-serial/receipt Thu Aug 06 18:21:47 2009 +0000 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="python-serial" +SOURCE="pyserial" +VERSION="2.5-rc1" +CATEGORY="development" +SHORT_DESC="Multiplataform serial port module for python" +MAINTAINER="claudinei@slitaz.org" +DEPENDS="python" +BUILD_DEPENDS="python python-dev" +TARBALL="$SOURCE-$VERSION.zip" +WEB_SITE="http://pyserial.sourceforge.net" +WGET_URL="$SF_MIRROR/$SOURCE/2.5/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + python setup.py install --root=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + for file in `find $_pkg | grep 'pyc$'`; do + rm $file + done + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr +} +