summaryrefslogtreecommitdiffstats
path: root/pipelight
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2013-11-05 10:57:15 +0000
committer Eric Hameleers <alien@slackware.com>2013-11-05 10:57:15 +0000
commit3d0e787fe063b1e07d468ed111e111fc1c03f4e8 (patch)
tree7759f676e67c80c77c1dac6dec38b9ddee7f0061 /pipelight
parentcc2eb27f13845c486ff79390bbf31620243f216e (diff)
downloadasb-3d0e787fe063b1e07d468ed111e111fc1c03f4e8.tar.gz
asb-3d0e787fe063b1e07d468ed111e111fc1c03f4e8.tar.xz
This produces a working pipelight package.
Diffstat (limited to 'pipelight')
-rwxr-xr-xpipelight/build/pipelight.SlackBuild29
1 files changed, 23 insertions, 6 deletions
diff --git a/pipelight/build/pipelight.SlackBuild b/pipelight/build/pipelight.SlackBuild
index 9e5bf29b..b1848baf 100755
--- a/pipelight/build/pipelight.SlackBuild
+++ b/pipelight/build/pipelight.SlackBuild
@@ -164,6 +164,11 @@ tar -xvf ${SOURCE[0]}
mv mmueller2012-pipelight-* ${PRGNAM}-${VERSION}
cd ${PRGNAM}-${VERSION}
tar -xvf ${SOURCE[1]} -C src/windows
+
+# Slackware specific patches:
+cat $SRCDIR/pipelight_install-dependency_mktemp.patch | patch -p0 --verbose \
+ 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log
+
chown -R root:root .
chmod -R u+w,go+r-w,a+X-s .
@@ -188,12 +193,24 @@ make SUBDIRS=src/linux DESTDIR=$PKG install \
mkdir -p $PKG/usr/share/pipelight
install -m0755 src/windows/pluginloader.exe $PKG/usr/share/pipelight
-# Enable pipelight's silverlight5.1 plugin out of the box:
-# Needs an explicit copy to support silverlight?
-cp -a $PKG/usr/lib/pipelight/libpipelight{,-silverlight5.1}.so
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
-ln -sf /usr/lib/pipelight/libpipelight-silverlight5.1.so \
- $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins/libpipelight-silverlight5.1.so
+# Create the doinst.sh script:
+mkdir -p $PKG/install
+cat <<EOT > $PKG/install/doinst.sh
+# Remove copies of the libpipelight.so and re-create them.
+# This is needed because of the way Mozilla browsers evaluate the available
+# plugins in the plugins directory: multiple soft- and hardlinks
+# to the same file will be seen as _one_ plugin, not several.
+#
+# Browser plugins need to be enabled by the user (non-root) using the command:
+# $ pipelight-plugin --enable <plugin_name>
+# for instance if the user wants to use SilverLight:
+# $ pipelight-plugin --enable silverlight5.1
+# That will download and install the necessary Windows files, the very first
+# time the plugin is loaded by a browser.
+#
+chroot . pipelight-plugin --remove-mozilla-plugins
+chroot . pipelight-plugin --create-mozilla-plugins
+EOT
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION