SHARE
TWEET

davnozdu

a guest Sep 26th, 2009 211 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Davnozdu
  2. pkgname=chromium-browser-4.0.219.3
  3. pkgver=4.0.219.3~svn20090925r27181
  4. pkgrel=1
  5. pkgdesc="Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web."
  6. url="http://code.google.com/chromium/"
  7. if [ "${CARCH}" = 'x86_64' ]; then
  8.     depends=('atk' 'gtk2' 'nss' 'lib32-gtk2' 'lib32-libxdamage'
  9.     'lib32-nspr' 'lib32-openssl' 'lib32-gconf'
  10.     'lib32-dbus-glib' 'lib32-cairo' 'lib32-freetype')
  11. elif [ "${CARCH}" = 'i686' ]; then
  12.     depends=('atk' 'gtk2' 'nss' 'gconf' 'cairo' 'freetype2' 'dbus-glib')
  13. fi
  14. arch=('i686' 'x86_64')
  15. license=('BSD')
  16. source=(https://launchpad.net/~chromium-daily/+archive/ppa/+build/1261263/+files/chromium-browser_${pkgver}-0ubuntu1~ucd1~hardy_i386.deb)
  17. md5sums=('5aa5f2c658964b069c26054c9fbbfa2c')
  18.  
  19. build() {
  20.     cd $srcdir
  21.  
  22.     bsdtar xf "chromium-browser_${pkgver}-0ubuntu1~ucd1~hardy_i386.deb" || return 1
  23.     bsdtar xf data.tar.lzma -C $pkgdir || return 1
  24.  
  25.     if [ "${CARCH}" = 'x86_64' ]; then
  26.         ## create wrapper script
  27.         echo '#!/bin/bash' > $pkgdir/usr/bin/chrome
  28.         echo 'export PANGO_RC_FILE="/opt/lib32/config/pango/pangorc"' >> $pkgdir/usr/bin/chrome  
  29.         echo 'export LDPATH="/opt/lib32/lib/:/opt/lib32/usr/lib:/opt/lib32/usr/local/lib"' >> $pkgdir/usr/bin/chrome
  30.         echo '/usr/bin/chromium-browser &' >> $pkgdir/usr/bin/chrome
  31.         chmod +x $pkgdir/usr/bin/chrome
  32.     fi
  33.  
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top