Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD ARCH64 chromium-codecs-ffmpeg-nonfree-bin

By: a guest on Apr 12th, 2010  |  syntax: None  |  size: 1.82 KB  |  views: 209  |  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. # $Id:$
  2. # Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
  3.  
  4. pkgname=chromium-codecs-ffmpeg-nonfree-bin
  5. pkgver=44105
  6. _pkgpre=0.5+svn20100406r43776+43984+
  7. _pkgsuf=0ubuntu1~ucd1~karmic
  8. pkgrel=1
  9. pkgdesc="Non-free ffmpeg codecs for 'chromium-browser-bin'"
  10. arch=('i686' 'x86_64')
  11. url=http://code.google.com/chromium/
  12. license=('GPL' 'LGPL' 'custom')
  13. depends=('chromium-browser-bin')
  14. install=${pkgname}.install
  15.  
  16. _tgtdir=opt
  17. _gogdir=chromium-browser
  18. case "$CARCH" in
  19.     i686|i[3-5]86)
  20.         _bldarch='i386'
  21.         md5sums=('1ae094f5280219cf00e60c70f2ff8f60');;
  22.     x86_64|amd64)
  23.         _bldarch='amd64'
  24.         md5sums=('ec20a371099122ea926e0297fe38c1b1');;
  25.     # The following should not happen; provided you're using 'makepkg' ;)
  26.     *) error "Unknown or invalid CARCH=$CARCH"; exit 1
  27. esac
  28.  
  29. _url=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-codecs-ffmpeg
  30. source=(${_url}/chromium-codecs-ffmpeg-extra_${_pkgpre}${pkgver}-${_pkgsuf}_${_bldarch}.deb)
  31.  
  32. build() {
  33.     msg2 "Extracting files..."
  34.     cd "$srcdir"
  35.     ar x chromium-codecs-ffmpeg-extra_${_pkgpre}${pkgver}-${_pkgsuf}_${_bldarch}.deb
  36.     tar xf data.tar.gz
  37.     mkdir -p $pkgdir/${_tgtdir}/${_gogdir}
  38.     cp -d $srcdir/usr/lib/${_gogdir}/lib* $pkgdir/${_tgtdir}/${_gogdir}
  39.     mv $pkgdir/${_tgtdir}/${_gogdir}/libffmpegsumo.so $pkgdir/${_tgtdir}/${_gogdir}/libffmpegsumo.so.NONFREE
  40.  
  41.     msg2 "Making it nice..."
  42.     install -Dm644 $srcdir/usr/share/doc/${pkgname%-bin}/copyright \
  43.         $pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt
  44.     cat >>$pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt <<-EOT
  45. On ArchLinux machines, a complete text of the GNU General Public
  46. License can be found in '/usr/share/licenses/common/GPL' and a text of the
  47. GNU Lesser General Public License is in '/usr/share/licenses/common/LGPL' ;)
  48. EOT
  49. }
  50.  
  51. # vim:set ts=4 sw=4 et:
clone this paste RAW Paste Data