[Lunar-commits] <moonbase-other> pepperflash: Adjuting the BUILD to provide a method its path can be picked up

Dennis Veatch dennisveatch at bellsouth.net
Sat Sep 20 17:38:01 CEST 2014


commit a277c619dbe782224073249261bb2a10b9ab8e4a
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Sat, 20 Sep 2014 11:37:14 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/a277c619dbe782224073249261bb2a10b9ab8e4a

pepperflash: Adjuting the BUILD to provide a method its path can be picked up

by other apps (chromium).
---
  zbeta/pepperflash/BUILD | +13/-1    
  1 file changed, 13 insertions(+), 1 deletion(-)

--- a/zbeta/pepperflash/BUILD
+++ b/zbeta/pepperflash/BUILD
@@ -1,4 +1,16 @@
 
   mkdir -p /usr/lib/lunar/plugins &&
   prepare_install &&
-  install opt/google/chrome/PepperFlash/* /usr/lib/lunar/plugins
+
+  install opt/google/chrome/PepperFlash/* /usr/lib/lunar/plugins &&
+
+# So you don't need to fiddle with this yourself.
+  mkdir -p /etc/chromium &&
+  if [ ! -f /etc/chromium/pepper-flash ] ; then
+    PP_VER=$(sed -n 's/.*"version": "\(.*\)",.*/\1/p' opt/google/chrome/PepperFlash/manifest.json) &&
+    FLAPPER="/usr/lib/lunar/plugins/libpepflashplayer.so" &&
+    echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > pepper-flash &&
+    echo -n "--ppapi-flash-path=$FLAPPER " >> pepper-flash &&
+    echo "--ppapi-flash-version=$PP_VER\"" >> pepper-flash &&
+    install pepper-flash /etc/chromium/
+  fi




More information about the Lunar-commits mailing list