aboutsummaryrefslogtreecommitdiff
path: root/audio/lash/lash.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@slackbuilds.org>2020-08-18 12:17:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:45 +0700
commitd3b5a6da8f5ed02ac0a66037e6f02cd45dc2c6cf (patch)
tree702e8657338cfb9e833fb29baeaf86c86829d407 /audio/lash/lash.SlackBuild
parentc2a7bf75b1146c98c96532f99b0c9aacc5ab5aaf (diff)
audio/lash: Add texi2html auto-detection.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/lash/lash.SlackBuild')
-rw-r--r--audio/lash/lash.SlackBuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/audio/lash/lash.SlackBuild b/audio/lash/lash.SlackBuild
index 15270712ba00..281ad2b76e77 100644
--- a/audio/lash/lash.SlackBuild
+++ b/audio/lash/lash.SlackBuild
@@ -27,12 +27,12 @@
PRGNAM=lash
VERSION=${VERSION:-0.6.0.594}
SOURCE=$PRGNAM-0.6.0~rc2
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -43,8 +43,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"
@@ -67,15 +67,19 @@ tar xvf $CWD/$SOURCE.tar.bz2
cd $PRGNAM-$VERSION
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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
-if [ "$(/usr/share/texmf/bin/texi2html --version)" != "1.76" ]; then
+if [ "$(/usr/share/texmf/bin/texi2html --version 2>/dev/null)" != "1.76" ]; then
patch -p1 --verbose < $CWD/texlive.patch
fi
+if $( which texi2html >/dev/null 2>&1 ); then
+ manual=docs/lash-manual-html-one-page/lash-manual.html
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -91,12 +95,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS README.SECURITY COPYING ChangeLog ChangeLog.old NEWS INSTALL README \
- docs/lash-manual-html-one-page/lash-manual.html \
+ $manual \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild