diff options
Diffstat (limited to 'system/mktorrent')
-rw-r--r-- | system/mktorrent/README | 4 | ||||
-rw-r--r-- | system/mktorrent/mktorrent.SlackBuild | 30 | ||||
-rw-r--r-- | system/mktorrent/mktorrent.info | 8 | ||||
-rw-r--r-- | system/mktorrent/slack-desc | 18 |
4 files changed, 31 insertions, 29 deletions
diff --git a/system/mktorrent/README b/system/mktorrent/README index 6e2fcf48d4..de4a055625 100644 --- a/system/mktorrent/README +++ b/system/mktorrent/README @@ -1,2 +1,2 @@ -mktorrent is a console .torrent file creator. It supports Multi Trackers -(tier groups). +mktorrent is a console .torrent file creator. +It supports Multi Trackers (tier groups). diff --git a/system/mktorrent/mktorrent.SlackBuild b/system/mktorrent/mktorrent.SlackBuild index ec8412a83e..b1667c80a0 100644 --- a/system/mktorrent/mktorrent.SlackBuild +++ b/system/mktorrent/mktorrent.SlackBuild @@ -1,12 +1,12 @@ #!/bin/sh # Slackware build script for mktorrent -# Written by Grigorios Bouzakis (grbzks@gmail.com) +# Written by Grigorios Bouzakis (grbzks@xsmail.com) PRGNAM=mktorrent VERSION=${VERSION:-0.9.9} -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +ARCH=${ARCH:-x86_64} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -16,14 +16,15 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi -DOCS="CHANGES LICENSE" - set -e rm -rf $PKG @@ -39,25 +40,24 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ - -make - +make CFLAGS+="-w $SLKCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFS64" mkdir -p $PKG/usr/bin -cp -a mktorrent $PKG/usr/bin/ +cat mktorrent > $PKG/usr/bin/mktorrent +chmod 0755 $PKG/usr/bin/mktorrent ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES LICENSE $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 +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/mktorrent/mktorrent.info b/system/mktorrent/mktorrent.info index 52bcc979d7..300a8238cc 100644 --- a/system/mktorrent/mktorrent.info +++ b/system/mktorrent/mktorrent.info @@ -1,8 +1,10 @@ PRGNAM="mktorrent" VERSION="0.9.9" -HOMEPAGE="http://borg.uu3.net/~borg/" +HOMEPAGE="http://borg.uu3.net/~borg/?mktorrent" DOWNLOAD="ftp://borg.uu3.net/pub/unix/mktorrent/mktorrent-0.9.9.tgz" MD5SUM="8bdfa36982446f3ccd8549fedefb7448" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" MAINTAINER="Grigorios Bouzakis" -EMAIL="grbzks@gmail.com" -APPROVED="David Somero" +EMAIL="grbzks@xsmail.com" +APPROVED="rworkman" diff --git a/system/mktorrent/slack-desc b/system/mktorrent/slack-desc index 48bae60c50..1cfc126e1b 100644 --- a/system/mktorrent/slack-desc +++ b/system/mktorrent/slack-desc @@ -5,15 +5,15 @@ # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler------------------------------------------------------| + |-----handy-ruler------------------------------------------------------| mktorrent: mktorrent (Console .torrent file creator) mktorrent: mktorrent: Console .torrent file creator. It support Multi Trackers. -mktorrent: -mktorrent: Homepage: http://borg.uu3.net/~borg/ -mktorrent: -mktorrent: -mktorrent: -mktorrent: -mktorrent: -mktorrent: +mktorrent: +mktorrent: Homepage: http://borg.uu3.net/~borg/?mktorrent +mktorrent: +mktorrent: +mktorrent: +mktorrent: +mktorrent: +mktorrent: |