2 # Contributor: RobertMe
3 # Contributor: BlackEagle
5 # Contributor: totoloco
6 pkgname=opera-next # Set to opera if you want to replace your main/stable build
10 pkgver=${_bigrelease}_${_buildver}
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')
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')
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=('75f9eee6b9b6523348b08e7fd2516fd7')
26 [ "$CARCH" = "x86_64" ] && md5sums=('e479294ed764a14c8238088f0fbfa00b')
28 # Uncomment the following line, if you want your User Agent to include Arch Linux.
29 #_opdistro="Arch Linux"
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"
37 # Insert an Arch User Agent string if set
38 if [ -n "${_opdistro}" ]
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"