wok-current annotate python-serial/receipt @ rev 15685
linux-lxc: add post_install() for update menu.lst
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Dec 21 07:21:07 2013 +0100 (2013-12-21) |
parents | 95bff0faad45 |
children | 56939ad28d41 |
rev | line source |
---|---|
claudinei@3829 | 1 # SliTaz package receipt. |
claudinei@3829 | 2 |
claudinei@3829 | 3 PACKAGE="python-serial" |
claudinei@3829 | 4 SOURCE="pyserial" |
claudinei@3829 | 5 VERSION="2.5-rc1" |
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" |
claudinei@3829 | 10 TARBALL="$SOURCE-$VERSION.zip" |
claudinei@3829 | 11 WEB_SITE="http://pyserial.sourceforge.net" |
claudinei@3829 | 12 WGET_URL="$SF_MIRROR/$SOURCE/2.5/$TARBALL" |
claudinei@3829 | 13 |
pascal@15376 | 14 DEPENDS="python" |
pascal@15376 | 15 BUILD_DEPENDS="python python-dev" |
pascal@15376 | 16 |
claudinei@3829 | 17 # Rules to configure and make the package. |
claudinei@3829 | 18 compile_rules() |
claudinei@3829 | 19 { |
claudinei@3829 | 20 cd $src |
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 |