diff options
Diffstat (limited to 'system/rEFInd/rEFInd.SlackBuild')
-rw-r--r-- | system/rEFInd/rEFInd.SlackBuild | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/system/rEFInd/rEFInd.SlackBuild b/system/rEFInd/rEFInd.SlackBuild index 90f28c4eb8..e9f1743a2f 100644 --- a/system/rEFInd/rEFInd.SlackBuild +++ b/system/rEFInd/rEFInd.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for refind -# Copyright 2020 Zhu Qun-Ying All rights reserved. +# Copyright 2020-2023 Zhu Qun-Ying All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -21,11 +21,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=rEFInd SRCNAME=refind -VERSION=${VERSION:-0.12.0} +VERSION=${VERSION:-0.14.0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,7 +43,14 @@ if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i586" ] && [ "$ARCH" != "i686" ]; th exit fi -CWD=$(pwd) +# 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-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -62,7 +72,8 @@ else REFIND_SUFFIX=ia32 fi sed -i '/^EFICRT0/ s/$/\/gnuefi/' Make.common -make all_gnuefi + +make -j1 all_gnuefi REFIND_SHARE_DIR=$PKG/usr/share/$PRGNAM-$VERSION mkdir -p $PKG/usr/sbin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -88,12 +99,15 @@ cp mkrlconf mvrefind mountesp $PKG/usr/sbin ) cp -a docs/* *.txt $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type d -exec chmod 0755 {} \; + # include a slackware banner made by me, including the svg version cp $CWD/slackware-banner.* $REFIND_SHARE_DIR/banners mkdir -p $PKG/usr/man/man8 mv $PKG/usr/doc/$PRGNAM-$VERSION/man/*.8 $PKG/usr/man/man8 rmdir $PKG/usr/doc/$PRGNAM-$VERSION/man +find $PKG/usr/man -type f -exec chmod 0644 {} \; gzip $PKG/usr/man/man8/* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -102,4 +116,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 |