aboutsummaryrefslogtreecommitdiff
path: root/network/remmina/remmina.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/remmina/remmina.SlackBuild')
-rw-r--r--network/remmina/remmina.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/network/remmina/remmina.SlackBuild b/network/remmina/remmina.SlackBuild
index 8ce1eb99b666..80f30cabef6e 100644
--- a/network/remmina/remmina.SlackBuild
+++ b/network/remmina/remmina.SlackBuild
@@ -30,7 +30,7 @@ BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCNAM=Remmina
-TARVERSION=${VERSION/_/-}
+TARVERSION=$(echo $VERSION | tr _ -)
AVAHI=${AVAHI:-OFF}
TELEPATHY=${TELEPATHY:-OFF}
@@ -68,18 +68,18 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-${TARVERSION#v}
-tar xvf $CWD/v$TARVERSION.tar.?z*
-cd $SRCNAM-${TARVERSION#v}
+rm -rf $SRCNAM-$TARVERSION
+tar xvf $CWD/$SRCNAM-$TARVERSION.tar.gz || tar xvf $CWD/v$TARVERSION.tar.gz
+cd $SRCNAM-$TARVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix libdirsuffix in CMakeLists.txt
-sed "s|/lib/remmina|/lib$LIBDIRSUFFIX/remmina|g" -i CMakeLists.txt || exit 1
+sed "s|/lib/remmina|/lib$LIBDIRSUFFIX/remmina|g" -i CMakeLists.txt
# Apply a whole lotta patches (if available)...
[ -d $CWD/patches ] && for i in $CWD/patches/*; do patch -p1 -i $i ; done