summaryrefslogtreecommitdiffstats
path: root/chromium-pepperflash-plugin/build/doinst.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2013-11-21 20:57:43 +0000
committer Eric Hameleers <alien@slackware.com>2013-11-21 20:57:43 +0000
commit530157c1f3a97cd31ce7631540a11e1a920f83b5 (patch)
tree1cc0bd4a63ed273bce17c4409b795358f17f6750 /chromium-pepperflash-plugin/build/doinst.sh
parent97ec723ea14e6ef12433f6597b108f1a564688fe (diff)
downloadasb-530157c1f3a97cd31ce7631540a11e1a920f83b5.tar.gz
asb-530157c1f3a97cd31ce7631540a11e1a920f83b5.tar.xz
Initial revision
Diffstat (limited to 'chromium-pepperflash-plugin/build/doinst.sh')
-rw-r--r--chromium-pepperflash-plugin/build/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/chromium-pepperflash-plugin/build/doinst.sh b/chromium-pepperflash-plugin/build/doinst.sh
new file mode 100644
index 00000000..ddecbe62
--- /dev/null
+++ b/chromium-pepperflash-plugin/build/doinst.sh
@@ -0,0 +1,19 @@
+# Make sure that Chromium finds the new plugin:
+if ! grep -q "START @PRGNAM@" etc/default/chromium 2>/dev/null ; then
+ mkdir -p etc/default
+ cat <<EOT >> etc/default/chromium
+
+# START @PRGNAM@
+flashso="/usr/lib@LIBDIRSUFFIX@/PepperFlash/libpepflashplayer.so"
+
+if [ -f \$flashso ]
+then
+ flashversion=\$(strings \$flashso|grep ^LNX|sed -e "s/^LNX //"|sed -e "s/,/./g")
+ CHROMIUM_FLAGS="\$CHROMIUM_FLAGS --ppapi-flash-path=\$flashso --ppapi-flash-version=\$flashversion"
+fi
+# END @PRGNAM@
+
+EOT
+
+fi
+