summaryrefslogtreecommitdiff
path: root/python/distribute/distribute.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/distribute/distribute.SlackBuild')
-rw-r--r--python/distribute/distribute.SlackBuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/python/distribute/distribute.SlackBuild b/python/distribute/distribute.SlackBuild
new file mode 100644
index 0000000000..a2b54f7767
--- /dev/null
+++ b/python/distribute/distribute.SlackBuild
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# Slackware build script for distribute
+# Written by Audrius Kažukauskas <audrius@neutrino.lt>
+
+PRGNAM=distribute
+VERSION=${VERSION:-0.6.14}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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 -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Don't need this.
+rm -f setuptools/*.exe
+
+python setup.py install --root=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+install -m 0644 *.txt $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}