From 56d1182b45f059d5711667aa4ce913b882312799 Mon Sep 17 00:00:00 2001 From: i3slkiller Date: Thu, 28 Mar 2024 22:15:01 +0700 Subject: games/ddnet: Remove duplicate code. Signed-off-by: Willy Sudiarto Raharjo --- games/ddnet/ddnet.SlackBuild | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'games') 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 -- cgit v1.2.3-79-gdb01