updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / opera-snapshot / PKGBUILD
blob9608cfca77b6df76d677951f1dfebb3efbfae94c
1 # Maintainer: GERGE
2 pkgname=opera-snapshot # Set to opera if you want to install as your main/stable build
3 _bigrelease=12.00
4 _buildver=1213
5 _rclevel=1
6 pkgver=${_bigrelease}.${_buildver}
7 pkgrel=1
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')
18 _arch=i386
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"
27 package() {
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}" ]
35         then
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"
40         fi