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>
This commit is contained in:
B. Watson 2022-04-08 18:02:25 -04:00 committed by Willy Sudiarto Raharjo
parent e14df9599e
commit 5f30c2c5c7
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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