2 pkgname=opera-beta # Set to "opera" or "opera-next" if you want to replace either of these
6 pkgver=${_bigrelease}b${_betalevel}
8 pkgdesc="A fast and secure web browser and Internet suite. Beta release version."
9 url="http://www.opera.com/browser/beta/"
10 depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
12 optdepends=('gstreamer0.10-base-plugins: HTML5 Video support' 'gstreamer0.10-good: HTML5 Video support')
13 install=opera-beta.install
14 options=(!strip !zipman)
15 license=('custom:opera')
16 arch=('i686' 'x86_64')
18 [ "$CARCH" = "x86_64" ] && _arch=x86_64
19 source=(http://ftp.opera.com/pub/opera/linux/${_bigrelease/./}b${_betalevel}/opera-${_bigrelease}-${_buildver}.${_arch}.linux.tar.xz http://people.opera.com/ruario/opera-next-icons_20111107.tar.xz)
20 sha256sums=('62c9ff4ee7849c93b850e2456a2e7707af18a8f9943e8f873f48ca3812702e58' '4040aad19e11c6e32d3603467858bf58dd389b24a4314e7cbb8b86c9c7b689fd')
21 [ "$CARCH" = "x86_64" ] && sha256sums=('1496d07cc58eec1b6209f01c2df6e315e45a1d755e54f2cd877eac89e79c48bc' '4040aad19e11c6e32d3603467858bf58dd389b24a4314e7cbb8b86c9c7b689fd')
23 # Uncomment the following line, if you want your User Agent to include Arch Linux.
24 #_opdistro="Arch Linux"
27 opera-${_bigrelease}-${_buildver}.${_arch}.linux/install --prefix /usr --name ${pkgname} --repackage "${pkgdir}/usr"
28 install -D -m 644 "${pkgdir}/usr/share/${pkgname}/defaults/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
30 # User Opera Next icon set if package name is set to Opera Next
31 if [ "${pkgname}" = "opera-next" ]; then
32 tar -xf opera-next-icons_20111107.tar.xz -C "${pkgdir}"
33 sed -i "s/^\(Product=\)opera$/\1opera-next/" "${pkgdir}/usr/share/opera-next/package-id.ini"
36 # Insert an Arch User Agent string if set
37 if [ -n "${_opdistro}" ]
39 mkdir -p "${pkgdir}/usr/share/${pkgname}/custom/defaults"
40 echo "[ISP]" > "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
41 echo "Id=${_opdistro}" >> "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"
42 chmod 644 "${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini"