diff options
Diffstat (limited to 'development/distribute/distribute.SlackBuild')
-rw-r--r-- | development/distribute/distribute.SlackBuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/development/distribute/distribute.SlackBuild b/development/distribute/distribute.SlackBuild new file mode 100644 index 0000000000000..a2b54f7767db9 --- /dev/null +++ b/development/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} |