From 7a1b4848a3d34a263544fadf08178c91c12fbad0 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 16 Mar 2011 01:13:49 -0500 Subject: python/*: Moved a lot of Python stuff here The criteria for whether something "belongs" in Development or Libraries or Python or ... is admittedly arbitrary. As a general rule, if it could be either Libraries or Python, it's Python. Otherwise, pick one and we'll go from there... Signed-off-by: Robby Workman --- python/pyserial/README | 1 + python/pyserial/pyserial.SlackBuild | 55 +++++++++++++++++++++++++++++++++++++ python/pyserial/pyserial.info | 10 +++++++ python/pyserial/slack-desc | 19 +++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 python/pyserial/README create mode 100644 python/pyserial/pyserial.SlackBuild create mode 100644 python/pyserial/pyserial.info create mode 100644 python/pyserial/slack-desc (limited to 'python/pyserial') diff --git a/python/pyserial/README b/python/pyserial/README new file mode 100644 index 0000000000..bc6ddf9364 --- /dev/null +++ b/python/pyserial/README @@ -0,0 +1 @@ +pyserial is a python module that encapsulates access to a serial port. diff --git a/python/pyserial/pyserial.SlackBuild b/python/pyserial/pyserial.SlackBuild new file mode 100644 index 0000000000..40ddd60fea --- /dev/null +++ b/python/pyserial/pyserial.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +# Slackware build script for pyserial + +# Written by Grissiom +# Updated by Dustin Schnee + +PRGNAM=pyserial +VERSION=${VERSION:-2.5_rc2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRC_VERSION=$(printf $VERSION | tr _ -) + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$SRC_VERSION +tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz +cd $PRGNAM-$SRC_VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +python setup.py install --root=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.txt LICENSE.txt README.txt PKG-INFO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/python/pyserial/pyserial.info b/python/pyserial/pyserial.info new file mode 100644 index 0000000000..5c22421b62 --- /dev/null +++ b/python/pyserial/pyserial.info @@ -0,0 +1,10 @@ +PRGNAM="pyserial" +VERSION="2.5_rc2" +HOMEPAGE="http://pyserial.sourceforge.net/index.html" +DOWNLOAD="http://downloads.sourceforge.net/pyserial/pyserial-2.5-rc2.tar.gz" +MD5SUM="feee06e28ff5337c010c5e326ec4efd3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Grissiom" +EMAIL="chaos.proton@gmail.com" +APPROVED="rworkman" diff --git a/python/pyserial/slack-desc b/python/pyserial/slack-desc new file mode 100644 index 0000000000..95859372c1 --- /dev/null +++ b/python/pyserial/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +pyserial: pyserial (python module for accessing the serial port) +pyserial: +pyserial: This module encapsulates the access for the serial port. It provides +pyserial: backends for Python running on Windows, Linux, BSD (possibly any POSIX +pyserial: compliant system), Jython and IronPython (.NET and Mono). +pyserial: +pyserial: Homepage: http://pyserial.sourceforge.net +pyserial: +pyserial: +pyserial: +pyserial: -- cgit v1.2.3-65-gdbad