summaryrefslogtreecommitdiffstats
path: root/multimedia/lightspark/lightspark.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/lightspark/lightspark.SlackBuild')
-rw-r--r--multimedia/lightspark/lightspark.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/multimedia/lightspark/lightspark.SlackBuild b/multimedia/lightspark/lightspark.SlackBuild
index 209f60e0d2..734d2a164f 100644
--- a/multimedia/lightspark/lightspark.SlackBuild
+++ b/multimedia/lightspark/lightspark.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lightspark
-# Copyright 2016-2018 Hunter Sezen California, USA
+# Copyright 2016-2021 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lightspark
-VERSION=${VERSION:-0.8.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.8.4.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,11 +69,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 {} \;
-# make llvm dependency optional (disabled by default)
-# https://github.com/lightspark/lightspark/issues/336
-# https://github.com/lightspark/lightspark/commit/aa970bcfa33cf9e88647e8268c4a18f7670c8d75
-patch -p1 < $CWD/llvm.patch
-
mkdir -p build
cd build
cmake \
@@ -83,16 +78,18 @@ cd build
-DMANUAL_DIRECTORY=man \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DGNASH_EXE_PATH=/usr/bin/gtk-gnash \
- -Wno-dev \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
-mv $PKG/etc/xdg/lightspark.conf $PKG/etc/xdg/lightspark.conf.new
+# 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" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+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