diff options
Diffstat (limited to 'multimedia/lightspark/lightspark.SlackBuild')
-rw-r--r-- | multimedia/lightspark/lightspark.SlackBuild | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/multimedia/lightspark/lightspark.SlackBuild b/multimedia/lightspark/lightspark.SlackBuild index 36bc8ea5a9..a4f0e26e7c 100644 --- a/multimedia/lightspark/lightspark.SlackBuild +++ b/multimedia/lightspark/lightspark.SlackBuild @@ -1,8 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lightspark -# Copyright 2016-2020 Hunter Sezen California, USA +# Copyright 2016-2021 Hunter Sezen California, USA +# All rights reserved. +# Copyright 2024 Bloyburt # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lightspark -VERSION=${VERSION:-0.8.3} +VERSION=${VERSION:-0.8.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -69,9 +81,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# don't name scripts 'build' -mv build build.sh - mkdir -p build cd build cmake \ @@ -81,12 +90,14 @@ cd build -DMANUAL_DIRECTORY=man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DGNASH_EXE_PATH=/usr/bin/gtk-gnash \ - -DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG cd .. +# lightspark depends on the rpath +# -DCMAKE_SKIP_RPATH=TRUE \ + mv -- $PKG/etc/xdg/lightspark.conf $PKG/etc/xdg/lightspark.conf.new find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | @@ -104,4 +115,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |