summaryrefslogtreecommitdiffstats
path: root/system/grub4dos/grub4dos.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/grub4dos/grub4dos.SlackBuild')
-rw-r--r--system/grub4dos/grub4dos.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/system/grub4dos/grub4dos.SlackBuild b/system/grub4dos/grub4dos.SlackBuild
index d0a323e78e..cfd913ecfc 100644
--- a/system/grub4dos/grub4dos.SlackBuild
+++ b/system/grub4dos/grub4dos.SlackBuild
@@ -15,12 +15,11 @@ PKGTYPE=${PKGTYPE:-tgz}
TARVERSION=$(echo $VERSION | tr '_' '-')
SRCVERSION=$(echo $VERSION | cut -f1 -d_ )
-# Now using the precompiled binary since Grub4dos doesn't build on other archs anyway
-ARCH="i386"
+# Now using the precompiled binary since Grub4dos doesn't build on other archs anyway.
+# 20230528 bkw: no more i386 or i486, Slackware hasn't supported them in ages. This
+# is just cosmetic, anyway.
+ARCH="i586"
-# 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
@@ -40,15 +39,14 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVERSION
# Guess they're using 7-zip archives now.
-#unzip $CWD/$PRGNAM-$TARVERSION.zip
-7z x $CWD/$PRGNAM-$TARVERSION.7z
+bsdtar xvf $CWD/$PRGNAM-$TARVERSION.7z
cd $PRGNAM-$SRCVERSION
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 \
+ -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 {} +
# bootlace.com is a hybrid DOS/Linux executable for installing grub4dos to MBR/PBR
mkdir -p $PKG/usr/sbin