summaryrefslogtreecommitdiff
path: root/network/LOIC/LOIC.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/LOIC/LOIC.SlackBuild')
-rw-r--r--network/LOIC/LOIC.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/network/LOIC/LOIC.SlackBuild b/network/LOIC/LOIC.SlackBuild
index af18e24984..e97a1b1ad4 100644
--- a/network/LOIC/LOIC.SlackBuild
+++ b/network/LOIC/LOIC.SlackBuild
@@ -30,8 +30,8 @@
###############################################################################
PRGNAM=LOIC
-SRCNAM=loic
-VERSION=${VERSION:-1.1.1.25}
+BINNAM=loic
+VERSION=${VERSION:-2.0.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,27 +45,27 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG/opt/LOIC $OUTPUT
+mkdir -p $TMP $PKG/opt/$PRGNAM $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-unzip $CWD/$SRCNAM.v$VERSION.zip
+unzip $CWD/$PRGNAM\_$VERSION.zip
chown -R root:root .
-cp -a LOIC.exe $PKG/opt/LOIC
+cp -a $PRGNAM.exe $PKG/opt/$PRGNAM
# This is for GUI users
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cat $CWD/LOIC.desktop > $PKG/usr/share/applications/LOIC.desktop
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# This is a handy script for CLI users
mkdir -p $PKG/usr/bin
-cat > $PKG/usr/bin/loic << EOF
+cat > $PKG/usr/bin/$BINNAM << EOF
#!/bin/sh
-mono /opt/LOIC/LOIC.exe
+mono /opt/$PRGNAM/$PRGNAM.exe
EOF
-chmod 755 $PKG/usr/bin/loic
+chmod 755 $PKG/usr/bin/$BINNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 -oroot $CWD/README.WARNING $PKG/usr/doc/$PRGNAM-$VERSION