From 59a87f34dc0d0b22c1514a2fdf2cb75ff10598e1 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Tue, 11 May 2010 22:54:30 +0200 Subject: misc/torrentinfo: Added to 12.1 repository --- misc/torrentinfo/torrentinfo.SlackBuild | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 misc/torrentinfo/torrentinfo.SlackBuild (limited to 'misc/torrentinfo/torrentinfo.SlackBuild') 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 -- cgit v1.2.3