summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-08 18:02:25 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:12 +0700
commit5f30c2c5c73b373548005e99ae7c01b734a6a3ed (patch)
tree457fab4aef5422b358ba4537a9119d10f2459958 /development
parente14df9599e2e59f047cbfc30ab7364c81793477d (diff)
downloadslackbuilds-5f30c2c5c73b373548005e99ae7c01b734a6a3ed.tar.gz
slackbuilds-5f30c2c5c73b373548005e99ae7c01b734a6a3ed.tar.xz
development/amazon-corretto: Fix PRINT_PACKAGE_NAME support.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/amazon-corretto/amazon-corretto.SlackBuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/development/amazon-corretto/amazon-corretto.SlackBuild b/development/amazon-corretto/amazon-corretto.SlackBuild
index 3a46e5189b..5b5575e8a1 100644
--- a/development/amazon-corretto/amazon-corretto.SlackBuild
+++ b/development/amazon-corretto/amazon-corretto.SlackBuild
@@ -30,14 +30,6 @@ TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# 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-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-amazon-corretto
OUTPUT=${OUTPUT:-/tmp}
@@ -49,6 +41,11 @@ if [ "$ARCH" != "x86_64" ]; then
exit 1
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
LIB_ARCH=amd64
LIBDIRSUFFIX="64"
SRC_ARCH="x64"
@@ -64,9 +61,9 @@ tar xvf $CWD/$PRGNAM-$VERSION-linux-$SRC_ARCH.tar.gz
chown -R root.root $PKG
find $PKG \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
mkdir -p $PKG/etc/profile.d
for file in $(ls $CWD/profile.d/*) ; do