summaryrefslogtreecommitdiffstats
path: root/audio/rplay/rplay.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rplay/rplay.SlackBuild')
-rw-r--r--audio/rplay/rplay.SlackBuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/audio/rplay/rplay.SlackBuild b/audio/rplay/rplay.SlackBuild
index 5d18484969..2cbeeb4455 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}
@@ -30,7 +35,7 @@ fi
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -48,8 +53,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -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