[Slackbuilds-users] highlight slackbuild bug
Alessandro Baggi
alessandro.baggi at gmail.com
Thu Sep 22 14:18:01 UTC 2022
Hi,
I'm trying to compile highlight using my script.
Running:
$(PRINT_PACKAGE_NAME="1" ./highlight.SlackBuild)
I get:
highlight-4.2--1_SBo.tgz
and the ARCH variable is missing.
Inside slackbuild file I read:
-------------------------------------------------------------------
# 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}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-----------------------------------------------------------------------
where echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" is before ARCH
identification. Putting:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
before if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
solves the problem.
Hope that helps.
Alessandro.
More information about the SlackBuilds-users
mailing list