mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/mktorrent: Updated for version 0.9.9
This commit is contained in:
parent
7bb8593a3d
commit
34a3c95984
4 changed files with 30 additions and 28 deletions
|
@ -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).
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -10,7 +10,7 @@ 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: Homepage: http://borg.uu3.net/~borg/?mktorrent
|
||||
mktorrent:
|
||||
mktorrent:
|
||||
mktorrent:
|
||||
|
|
Loading…
Reference in a new issue