wok-next view python-serial/receipt @ rev 16307
ARM: now python seems to cross compile (if libpython.so ARM are installed in sysroot)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 08 00:37:42 2014 +0200 (2014-04-08) |
parents | 95bff0faad45 |
children | 56939ad28d41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-serial"
4 SOURCE="pyserial"
5 VERSION="2.5-rc1"
6 CATEGORY="development"
7 SHORT_DESC="Multiplataform serial port module for python"
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE-$VERSION.zip"
11 WEB_SITE="http://pyserial.sourceforge.net"
12 WGET_URL="$SF_MIRROR/$SOURCE/2.5/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 python setup.py install --root=$DESTDIR
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 for file in `find $install | grep 'pyc$'`; do
28 rm $file
29 done
30 mkdir -p $fs/usr
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 }