aboutsummaryrefslogtreecommitdiff
path: root/development/arm-binutils
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-08 18:28:52 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:13 +0700
commitae33d9aa6c9e275de7d711d29a9116084d929d30 (patch)
tree147100cd43e76c384145cc5dcd51b710650dd194 /development/arm-binutils
parenteea3b9565e0c55c150573b0b32e016656b6f1485 (diff)
development/arm-binutils: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/arm-binutils')
-rw-r--r--development/arm-binutils/arm-binutils.SlackBuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/development/arm-binutils/arm-binutils.SlackBuild b/development/arm-binutils/arm-binutils.SlackBuild
index 9d2e77da58c0e..1b102605bda3b 100644
--- a/development/arm-binutils/arm-binutils.SlackBuild
+++ b/development/arm-binutils/arm-binutils.SlackBuild
@@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220408 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix doc ownership, if $CWD isn't owned by root.
+
# based on the work of:
# Marek Buras <cyfr0n (at) go2 !dot pl>,
# Vliegendehuiskat <vliegendehuiskat [at] gmail [dot] com> and
@@ -31,7 +34,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=arm-binutils
VERSION=${VERSION:-2.35}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,9 +46,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -81,9 +81,9 @@ 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 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -107,20 +107,17 @@ CXXFLAGS="$SLKCFLAGS" \
--with-gnu-ld
make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+make install-strip DESTDIR=$PKG
# Don't overwrite files from Slackware's binutils
-rm -rf $PKG/usr/info
-rm -rf $PKG/usr/man
+rm -rf $PKG/usr/info $PKG/usr/man
+# 20220408 bkw: don't change the install command below back to "cp -a"
+# please. configure_options.txt comes from $CWD and could be owned by
+# anyone.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING* ChangeLog MAINTAINERS README* $CWD/configure_options.txt \
+install -m0644 -oroot -groot \
+ COPYING* ChangeLog MAINTAINERS README* $CWD/configure_options.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild