2 # Contributor: RobertMe
3 # Contributor: BlackEagle
5 # Contributor: totoloco
6 pkgname=opera-rc # Set to opera if you want to install as your main/stable build
11 pkgver=${_bigrelease}_rc${_rcver}
13 pkgdesc="A fast and secure web browser and Internet suite. Release Candidate version."
14 url="http://my.opera.com/desktopteam/blog/"
15 depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
16 optdepends=('gtk2: GTK integration'
17 'kdebase-runtime: KDE4 integration'
18 'gstreamer0.10-base-plugins: HTML5 open codecs support'
19 'gstreamer0.10-good: HTML5 open codecs support'
20 'gstreamer0.10-ffmpeg: HTML5 not so open codecs support'
21 'gstreamer0.10-bad-plugins: HTML5 not so open codecs support')
22 install=opera-rc.install
23 options=(!strip !zipman)
24 license=('custom:opera')
25 arch=('i686' 'x86_64')
27 [ "$CARCH" = "x86_64" ] && _arch=x86_64
28 source=(http://snapshot.opera.com/unix/${_randomizer}_${_bigrelease}-${_buildver}/opera-${_bigrelease}-${_buildver}.${_arch}.linux.tar.xz)
29 md5sums=('06520e05c047628c470de55ac1a09ada')
30 [ "$CARCH" = "x86_64" ] && md5sums=('1c58b067710fd4f14eb12dbca7bc8f8a')
32 # Uncomment the following line, if you want your User Agent to include Arch Linux.
33 #_opdistro="Arch Linux"
37 # 'Install' Opera into $pkgdir
38 opera-${_bigrelease}-${_buildver}.${_arch}.linux/install --prefix /usr ${_suffix} --name ${pkgname} --repackage ${pkgdir}/usr
39 install -D -m 644 ${pkgdir}/usr/share/${pkgname}/defaults/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
41 # Insert an Arch User Agent string if set
42 if [ -n "${_opdistro}" ]
44 mkdir -p ${pkgdir}/usr/share/${pkgname}/custom/defaults
45 echo "[ISP]" > ${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini
46 echo "Id=${_opdistro}" >> ${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini
47 chmod 644 ${pkgdir}/usr/share/${pkgname}/custom/defaults/operaprefs.ini