wok-next annotate python-serial/receipt @ rev 20969
Micro-updates + { new clang + assaultcube (still broken)} + {new python modules from SliTaz Cooking + their depends}
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 14 01:56:52 2018 +0300 (2018-09-14) |
parents | 92698cd69f34 |
children |
rev | line source |
---|---|
claudinei@3829 | 1 # SliTaz package receipt. |
claudinei@3829 | 2 |
al@20887 | 3 PACKAGE="python-serial" # this == python-pyserial, to remove |
pankso@16476 | 4 VERSION="2.7" |
claudinei@3829 | 5 CATEGORY="development" |
claudinei@3829 | 6 SHORT_DESC="Multiplataform serial port module for python" |
claudinei@3829 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 8 LICENSE="BSD" |
al@20887 | 9 WEB_SITE="http://pyserial.sourceforge.net" |
al@20887 | 10 REPOLOGY="python:pyserial" |
al@20887 | 11 |
al@20887 | 12 SOURCE="pyserial" |
pankso@16476 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
al@20969 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/p/pyserial/$TARBALL" |
claudinei@3829 | 15 |
pascal@15376 | 16 DEPENDS="python" |
al@20444 | 17 BUILD_DEPENDS="python-dev" |
pascal@15376 | 18 |
claudinei@3829 | 19 # Rules to configure and make the package. |
claudinei@3829 | 20 compile_rules() |
claudinei@3829 | 21 { |
pascal@15376 | 22 python setup.py install --root=$DESTDIR |
claudinei@3829 | 23 } |
claudinei@3829 | 24 |
claudinei@3829 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3829 | 26 genpkg_rules() |
claudinei@3829 | 27 { |
pascal@15376 | 28 for file in `find $install | grep 'pyc$'`; do |
claudinei@3829 | 29 rm $file |
claudinei@3829 | 30 done |
claudinei@3829 | 31 mkdir -p $fs/usr |
pascal@15376 | 32 cp -a $install/usr/bin $fs/usr |
pascal@15376 | 33 cp -a $install/usr/lib $fs/usr |
claudinei@3829 | 34 } |
claudinei@3829 | 35 |