summaryrefslogtreecommitdiff
path: root/python/python-yenc
diff options
context:
space:
mode:
authorpowtrix <powtrix@gmail.com>2012-04-15 11:48:30 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-16 05:35:58 -0500
commit682007c6a4fa40ed8469c67d68d58ba9d1d96c0d (patch)
treedaa1e640734af9b958c1eaf3e38aaf69ba20b9d7 /python/python-yenc
parentc8493ef78bb8eda0e95ae8beb173ef730ba69555 (diff)
downloadslackbuilds-682007c6a4fa40ed8469c67d68d58ba9d1d96c0d.tar.gz
python/python-yenc: Added (raw encoding/decoding module for python)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'python/python-yenc')
-rw-r--r--python/python-yenc/README7
-rw-r--r--python/python-yenc/python-yenc.SlackBuild73
-rw-r--r--python/python-yenc/python-yenc.info10
-rw-r--r--python/python-yenc/slack-desc19
4 files changed, 109 insertions, 0 deletions
diff --git a/python/python-yenc/README b/python/python-yenc/README
new file mode 100644
index 0000000000..716a3a3ab8
--- /dev/null
+++ b/python/python-yenc/README
@@ -0,0 +1,7 @@
+ yEnc - a raw encoding/decoding module for Python
+
+This a fairly simple module, it provide only raw yEnc encoding/decoding with
+builitin crc32 calculation.
+Header parsing, checkings and yenc formatting are left to you (see examples
+directory for possible implementations). The interface was originally intended
+to be similar to the uu module from Python standard library.
diff --git a/python/python-yenc/python-yenc.SlackBuild b/python/python-yenc/python-yenc.SlackBuild
new file mode 100644
index 0000000000..4e8e986f7d
--- /dev/null
+++ b/python/python-yenc/python-yenc.SlackBuild
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# Slackware build script for python-yenc
+
+# Written by powtrix (@gmail.com)
+
+PRGNAM=python-yenc
+VERSION=${VERSION:-0.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCNAM=yenc
+
+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}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$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
+
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages/yenc-0.3-py2.6.egg-info
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYING README TODO \
+ $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/python-yenc/python-yenc.info b/python/python-yenc/python-yenc.info
new file mode 100644
index 0000000000..99237411b7
--- /dev/null
+++ b/python/python-yenc/python-yenc.info
@@ -0,0 +1,10 @@
+PRGNAM="python-yenc"
+VERSION="0.3"
+HOMEPAGE="http://sabnzbd.org/"
+DOWNLOAD="http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz"
+MD5SUM="7b3edd32db6c1ce566ad550e3de64c83"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="powtrix"
+EMAIL="powtrix@gmail.com"
+APPROVED="dsomero"
diff --git a/python/python-yenc/slack-desc b/python/python-yenc/slack-desc
new file mode 100644
index 0000000000..1e5adc8af0
--- /dev/null
+++ b/python/python-yenc/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+python-yenc: python-yenc (raw encoding/decoding module for python)
+python-yenc:
+python-yenc: This a fairly simple module, it provide only raw yEnc
+python-yenc: encoding/decoding with builtin crc32 calculation.
+python-yenc:
+python-yenc: Header parsing, checkings and yenc formatting are left to you
+python-yenc: (see examples directory for possible implementations).
+python-yenc: The interface originally intended to be similar to the uu
+python-yenc: module from Python standard library.
+python-yenc:
+python-yenc: