summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author i3slkiller <i3sl.1.3.3.0@gmail.com>2024-03-28 22:15:01 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-03-28 22:15:01 +0700
commit56d1182b45f059d5711667aa4ce913b882312799 (patch)
treee0911f9daf07941b81485daf3873f8a7b474c4f4
parentebea3d3822776c5162ae9f7bda5897fdfec03077 (diff)
downloadslackbuilds-56d1182b4.tar.gz
slackbuilds-56d1182b4.tar.xz
games/ddnet: Remove duplicate code.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/ddnet/ddnet.SlackBuild15
1 files changed, 4 insertions, 11 deletions
diff --git a/games/ddnet/ddnet.SlackBuild b/games/ddnet/ddnet.SlackBuild
index 40ac8cd364..9c0505f297 100644
--- a/games/ddnet/ddnet.SlackBuild
+++ b/games/ddnet/ddnet.SlackBuild
@@ -73,9 +73,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -105,12 +102,6 @@ cd $TMP
rm -rf $SRCNAM-$SRCVER
tar xvf $CWD/$SRCNAM-$SRCVER.tar.?z
cd $SRCNAM-$SRCVER
-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 {} \;
# build offline
# configuration tells cargo to use the configured directory
@@ -177,8 +168,10 @@ mkdir vendor
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 {} \;
+ \( -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 {} \;
export CARGO_HOME=.cargo