Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

chromium-pepperflash example PKGBUILD

By: a guest on May 26th, 2012  |  syntax: None  |  size: 0.79 KB  |  views: 77  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Ner0
  2.  
  3. pkgname=chromium-pepper-flash
  4. pkgver=11.3.31.103
  5. pkgrel=2
  6. pkgdesc="Google Chrome's Pepper Flash plugin for Chromium"
  7. arch=('i686' 'x86_64')
  8. _arch="$CARCH"
  9. [ "$CARCH" = 'i686' ] && _arch='i386'
  10. url="http://wiki.archlinux.org/index.php/Chromium#Flash_Player"
  11. license=('custom')
  12. depends=('')
  13. if [ -f /usr/bin/pulseaudio ]; then
  14.   depends+=('pulseaudio-alsa')
  15. fi
  16. makedepends=('wget' 'chromium-browser')
  17. install=pepper.install
  18.  
  19. package() {
  20.   wget "http://dl.google.com/dl/linux/direct/google-chrome-unstable_current_${_arch}.rpm"
  21.  
  22.   msg "Extracting Sources..."
  23.   bsdtar -xf google-chrome-unstable_current_${_arch}.rpm opt/google/chrome/PepperFlash
  24.  
  25.   install -dm755 "$pkgdir/usr/lib/PepperFlash"
  26.   for i in opt/google/chrome/PepperFlash/*; do install -m644 "$i" "$pkgdir/usr/lib/PepperFlash"; done
  27. }