summaryrefslogtreecommitdiffstats
path: root/misc/torrentinfo/torrentinfo.SlackBuild
diff options
context:
space:
mode:
author Erik Hanson2010-05-11 22:54:30 +0200
committer Robby Workman2010-05-11 22:54:30 +0200
commit59a87f34dc0d0b22c1514a2fdf2cb75ff10598e1 (patch)
tree26c13e83300c4f502b09a0ee718af414130e7fde /misc/torrentinfo/torrentinfo.SlackBuild
parent03500d8093627849c34deae5bcd298efd5cf8aa8 (diff)
downloadslackbuilds-59a87f34dc0d0b22c1514a2fdf2cb75ff10598e1.tar.gz
misc/torrentinfo: Added to 12.1 repository
Diffstat (limited to 'misc/torrentinfo/torrentinfo.SlackBuild')
-rw-r--r--misc/torrentinfo/torrentinfo.SlackBuild38
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