summaryrefslogtreecommitdiff
path: root/system/newLd
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2020-01-03 00:43:14 -0600
committerRobby Workman <rworkman@slackbuilds.org>2020-01-03 00:43:14 -0600
commit5ae57533f66a7dffdb49cfe9450915c7e2733210 (patch)
treee1240fb39d70cf4ef5ba5f1122e87fbf72405614 /system/newLd
parentcbcf0c714f2ff3b936208de3a80a4631cc7b9843 (diff)
downloadslackbuilds-5ae57533f66a7dffdb49cfe9450915c7e2733210.tar.gz
system/newLd: sed s,PKGNAM,PRGNAM,g in build script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/newLd')
-rw-r--r--system/newLd/newLd.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/newLd/newLd.SlackBuild b/system/newLd/newLd.SlackBuild
index a482f4d3e8..f29e1c2436 100644
--- a/system/newLd/newLd.SlackBuild
+++ b/system/newLd/newLd.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
-PKGNAM=newLd
+PRGNAM=newLd
VERSION=${VERSION:-$(echo binutils-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,7 +48,7 @@ fi
## 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+# echo "$PRGNAM-$VERSION-$ARCH-$BUILD.txz"
# exit 0
#fi
@@ -87,7 +87,7 @@ case "$ARCH" in
esac
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PKGNAM
+PKG=$TMP/package-$PRGNAM
rm -rf $PKG
mkdir -p $TMP $PKG
@@ -135,7 +135,7 @@ CFLAGS="$SLKCFLAGS" \
--libdir=$PREFIX/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--infodir=/usr/info \
- --with-docdir=/usr/doc/$PKGNAM-$VERSION \
+ --with-docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-compressed-debug-sections \
--enable-multilib \
--enable-64-bit-bfd \
@@ -239,15 +239,15 @@ rm -f $PKG/usr/info/{as,nm,bfd,binutils,gprof}.info
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
-mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp \
COPYING* ChangeLog.linux MAI* README* \
- $PKG/usr/doc/$PKGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then
- DOCSDIR=$(echo $PKG/usr/doc/$PKGNAM-$VERSION)
+ DOCSDIR=$(echo $PKG/usr/doc/$PRGNAM-$VERSION)
cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
touch -r ChangeLog $DOCSDIR/ChangeLog
fi