diff options
Diffstat (limited to 'misc/torrentinfo/torrentinfo.SlackBuild')
-rw-r--r-- | misc/torrentinfo/torrentinfo.SlackBuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/misc/torrentinfo/torrentinfo.SlackBuild b/misc/torrentinfo/torrentinfo.SlackBuild new file mode 100644 index 0000000000..dbe73d7a27 --- /dev/null +++ b/misc/torrentinfo/torrentinfo.SlackBuild @@ -0,0 +1,38 @@ +#!/bin/sh + +# Slackware build script for TorrentInfo +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=torrentinfo +VERSION=1.0.1 +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +python setup.py install --root=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $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.tgz |