2 pkgname=opera-snapshot # Set to opera if you want to install as your main/stable build
6 pkgver=${_bigrelease}.${_buildver}
8 pkgdesc="Bleeding-edge Opera Web Browser builds"
9 url="http://my.opera.com/desktopteam/blog/"
10 depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
11 optdepends=('flashplugin: Flash support'
12 'openjdk6: Java support'
13 'gstreamer0.10-plugins: HTML5 support')
14 install=opera-snapshot.install
15 options=(!strip !zipman)
16 license=('custom:opera')
17 arch=('i686' 'x86_64')
19 [ "$CARCH" = "x86_64" ] && _arch=x86_64
20 source=(http://snapshot.opera.com/unix/hwa_${_bigrelease}-${_buildver}/opera-next-${_bigrelease}-${_buildver}.${_arch}.linux.tar.xz)
21 md5sums=('75f9eee6b9b6523348b08e7fd2516fd7')
22 [ "$CARCH" = "x86_64" ] && md5sums=('e479294ed764a14c8238088f0fbfa00b')
24 # Comment the following line, if you do not want your User Agent to include Arch Linux.
25 _opdistro="Arch Linux"
29 # 'Install' Opera into $pkgdir
30 opera-next-${_bigrelease}-${_buildver}.${_arch}.linux/install --prefix /usr --name ${pkgname} --repackage "${pkgdir}/usr"
31 install -D -m 644 "${pkgdir}/usr/share/${pkgname}/defaults/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
33 # Insert an Arch User Agent string if set
34 if [ -n "${_opdistro}" ]
36 mkdir -p "${pkgdir}/usr/share/${pkgname}/custom/defaults"
37 echo "[ISP]" > "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
38 echo "Id=${_opdistro}" >> "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
39 chmod 644 "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"