aboutsummaryrefslogtreecommitdiff
path: root/system/dumptorrent/dumptorrent.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/dumptorrent/dumptorrent.SlackBuild')
-rw-r--r--system/dumptorrent/dumptorrent.SlackBuild21
1 files changed, 16 insertions, 5 deletions
diff --git a/system/dumptorrent/dumptorrent.SlackBuild b/system/dumptorrent/dumptorrent.SlackBuild
index 2460e73c06..b5bb33bd31 100644
--- a/system/dumptorrent/dumptorrent.SlackBuild
+++ b/system/dumptorrent/dumptorrent.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dumptorrent
-VERSION=${VERSION:-1.2}
+VERSION=${VERSION:-1.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,19 +75,30 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make dumptorrent CFLAGS="$SLKCFLAGS"
+mkdir build
+cd build
+cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_COMPILER=g++ \
+ -DCMAKE_C_COMPILER=gcc \
+ -DCMAKE_BUILD_TYPE=Release ..
+make
+cd ..
-# There's no 'install' target and no documentation, so we just copy the binary
-# to a correct location and package it.
+# There's no 'install' target, so we just copy the binaries to a correct
+# location
mkdir -p $PKG/usr/bin
-install -Dm755 ./dumptorrent $PKG/usr/bin/
+install -Dm755 build/dumptorrent $PKG/usr/bin/
+install -Dm755 build/scrapec $PKG/usr/bin/
# Strip binaries
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Copy the slack-desc into ./install