This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: Bash  |  size: 1.82 KB  |  views: 37  |  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: ruario
  2. # Contributor: RobertMe
  3. # Contributor: BlackEagle
  4. # Contributor: Skunnyk
  5. # Contributor: totoloco
  6. pkgname=opera-next # Set to opera if you want to replace your main/stable build
  7. _bigrelease=12.00
  8. _buildver=1413
  9. _randomizer=family
  10. pkgver=${_bigrelease}_${_buildver}
  11. pkgrel=1
  12. pkgdesc="A fast and secure web browser and Internet suite. Alpha version."
  13. url="http://my.opera.com/desktopteam/blog/"
  14. depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
  15. provides=('opera')
  16. replaces=('opera-devel')
  17. optdepends=('gstreamer0.10-base-plugins: HTML5 Video support' 'gstreamer0.10-good: HTML5 Video support')
  18. install=opera-next.install
  19. options=(!strip !zipman)
  20. license=('custom:opera')
  21. arch=('i686' 'x86_64')
  22. _arch=i386
  23. [ "$CARCH" = "x86_64" ] && _arch=x86_64
  24. source=(http://snapshot.opera.com/unix/${_randomizer}_${_bigrelease}-${_buildver}/opera-next-${_bigrelease}-${_buildver}.${_arch}.linux.tar.xz)
  25. md5sums=('aed4ef2a9d8fc5aabe002f8644aa3b46')
  26. [ "$CARCH" = "x86_64" ] && md5sums=('8a02be32df3e5e4058559db4a89a51e2')
  27.  
  28. # Uncomment the following line, if you want your User Agent to include Arch Linux.
  29. #_opdistro="Arch Linux"
  30.  
  31. package() {
  32.  
  33.         # 'Install' Opera into $pkgdir
  34.         opera-next-${_bigrelease}-${_buildver}.${_arch}.linux/install --prefix /usr --name ${pkgname} --repackage "${pkgdir}/usr"
  35.         install -D -m 644 "${pkgdir}/usr/share/${pkgname}/defaults/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
  36.  
  37.         # Insert an Arch User Agent string if set
  38.         if [ -n "${_opdistro}" ]
  39.         then
  40.                 mkdir -p "${pkgdir}/usr/share/${pkgname}/custom/defaults"
  41.                 echo "[ISP]" > "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
  42.                 echo "Id=${_opdistro}" >> "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
  43.                 chmod 644 "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
  44.         fi
  45. }
clone this paste RAW Paste Data