summaryrefslogtreecommitdiffstats
path: root/multimedia/bino/bino.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/bino/bino.SlackBuild')
-rw-r--r--multimedia/bino/bino.SlackBuild51
1 files changed, 36 insertions, 15 deletions
diff --git a/multimedia/bino/bino.SlackBuild b/multimedia/bino/bino.SlackBuild
index 9c474f0d44..63b9ce2019 100644
--- a/multimedia/bino/bino.SlackBuild
+++ b/multimedia/bino/bino.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for bino3d
@@ -22,10 +22,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220215 bkw: Modified by SlackBuilds.org:
+# - updated for v1.6.8 (old version wouldn't build on Slack 15.0).
+# - build with qt5, not qt4.
+# - autodetect and build with lirc if present.
+# - drop freealut dep from .info (because upstream dropped it).
+# - include the texinfo documentation in the package (/usr/info).
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=bino
-VERSION=${VERSION:-1.6.5}
+VERSION=${VERSION:-1.6.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +45,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -65,10 +79,20 @@ 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 \
+ -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 {} \+
+# 20220215 bkw: configure script doesn't pick up lirc's libraries,
+# help it out a little.
+if [ "${LIRC:-yes}" = "yes" ] && pkg-config --exists lirc; then
+ LIRCLIBS="-llirc -llirc_client"
+ LIRCOPT="--with-lirc"
+else
+ LIRCOPT="--without-lirc"
+fi
+
+lirc_LIBS="$LIRCLIBS" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -79,20 +103,17 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--without-equalizer \
- --without-lirc \
- --with-qt-version=4 \
+ $LIRCOPT \
+ --with-qt-version=5 \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-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
+make install-strip DESTDIR=$PKG
-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
+mv $PKG/usr/share/info $PKG/usr/info
+rm -f $PKG/usr/info/dir
-rm -Rf $PKG/usr/info/dir $PKG/usr/share/info
+gzip -9 $PKG/usr/man/man*/* $PKG/usr/info/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README README.Linux $PKG/usr/doc/$PRGNAM-$VERSION
@@ -102,4 +123,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE