diff options
Diffstat (limited to 'system/grub4dos/grub4dos.SlackBuild')
-rw-r--r-- | system/grub4dos/grub4dos.SlackBuild | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/system/grub4dos/grub4dos.SlackBuild b/system/grub4dos/grub4dos.SlackBuild index 8e110636a7..cfd913ecfc 100644 --- a/system/grub4dos/grub4dos.SlackBuild +++ b/system/grub4dos/grub4dos.SlackBuild @@ -1,21 +1,30 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for grub4dos # Written by Steven Pledger <spledger91@yahoo.com> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=grub4dos VERSION=${VERSION:-0.4.5b_2011_02_20} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +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 [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -30,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 @@ -71,4 +79,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |