summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
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