summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
author B. Watson2022-04-10 21:10:26 +0200
committer B. Watson2022-04-10 21:10:26 +0200
commit368e9b1c4d2a0e0467e057150a72af1035f8a761 (patch)
treec3f3e9613a2bad5f88053a51957a67afdcc613b7 /audio
parent0a2b1c9b451fd8951450935632a984a14f55b689 (diff)
downloadslackbuilds-368e9b1c4d2a0e0467e057150a72af1035f8a761.tar.gz
audio/rplay: Fix /usr/include permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/rplay/rplay.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/audio/rplay/rplay.SlackBuild b/audio/rplay/rplay.SlackBuild
index 5d18484969..8107549492 100644
--- a/audio/rplay/rplay.SlackBuild
+++ b/audio/rplay/rplay.SlackBuild
@@ -4,11 +4,16 @@
# Written by Andrew Rowland <darowland@ieee.org>
+# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - do not install headers executable in /usr/include.
+# - remove useless INSTALL.generic from doc dir, rename
+# useful INSTALL to something more descriptive.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rplay
VERSION=${VERSION:-3.3.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -104,15 +109,19 @@ rm -f $PKG/usr/lib$LIBDIRSUFFIX/librplay.a
find $PKG -print0 | xargs -0 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
-
rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*.info*
+gzip -9 $PKG/usr/info/*.info* $PKG/usr/man/man*/*
+
+# 20220410 bkw: C headers shouldn't be executable.
+chmod 0644 $PKG/usr/include/*.h
+# 20220410 bkw: normally, INSTALL is useless to package users.
+# This one actually has useful config info and a FAQ, so it should
+# be installed... but give it a different name.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a INSTALL $PKG/usr/doc/$PRGNAM-$VERSION/install-config-faq.txt
cp -a \
- COPYING INSTALL INSTALL.generic NEWS PORTING README README.linux TODO \
+ COPYING NEWS PORTING README README.linux TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild