aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2024-07-08 08:16:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-09 20:12:37 +0700
commitae2343f2aea6fa5841b024d229471538f35983b1 (patch)
tree4a44c34cef37cebd9c79661f84465d55b1e912b6
parenteda56fe5e9c293693260dae9182cf8a09e1b6128 (diff)
multimedia/lives: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--multimedia/lives/lives.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/multimedia/lives/lives.SlackBuild b/multimedia/lives/lives.SlackBuild
index f4f7d3ce94a7..972da8be9e85 100644
--- a/multimedia/lives/lives.SlackBuild
+++ b/multimedia/lives/lives.SlackBuild
@@ -26,15 +26,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20230630 bkw: Modified by SlackBuilds.org, BUILD=4:
-# - move docs from /usr/share/doc to /usr/doc/$PRGNAM-$VERSION
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lives
SRCNAM=LiVES
VERSION=${VERSION:-3.2.0}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -46,6 +43,9 @@ 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
@@ -87,9 +87,9 @@ 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 {} \;
CV="--disable-opencv" ; [ "${OPENCV:-no}" = "yes" ] && CV=""
PA="--disable-pulse" ; [ "${PULSE:-yes}" = "yes" ] && PA=""
@@ -103,19 +103,21 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-ffmpeg \
$PA \
$CV \
--build=$ARCH-slackware-linux
-make -j1
-make -j1 install-strip DESTDIR=$PKG
+make || make -j1 || exit 1
+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
-PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
-mkdir -p $PKGDOC
-mv $PKG/usr/share/doc/$PRGNAM/* $PKGDOC
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/lives/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -rf $PKG/usr/share/doc
-cp -a COPYING NEWS $PKGDOC
-cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
(
cd $PKG/usr/bin && rm -f lives && ln -s lives-exe lives