blob: d96ff0b30121a0d179d6fed181004e1862f81d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=opera-beta
pkgver=37.0.2178.31
pkgrel=1
pkgdesc='A fast and secure web browser and Internet suite - beta stream'
arch=('x86_64' 'i686')
url='http://www.opera.com/browser/'
license=('custom:opera')
depends=('alsa-lib' 'nss' 'gtk2' 'gconf' 'libxss' 'libxtst' 'desktop-file-utils')
optdepends=('curl: opera crash reporter and autoupdate checker'
'libnotify: native desktop notifications'
"${pkgname}-ffmpeg-codecs: support h.264 and mp3 codecs")
options=(!strip)
backup=("etc/${pkgname}/default")
source=('opera'
'default')
_source='https://get.geo.opera.com/pub/'
# alternative downloads:
# http://get.geo.opera.com/pub/
# https://ftp.opera.com/pub/
# http://ftp.opera.com/pub/
# ftp://ftp.opera.com/pub/
source_x86_64=("${_source}/${pkgname}/${pkgver}/linux/${pkgname}_${pkgver}_amd64.deb")
source_i686=("${_source}/${pkgname}/${pkgver}/linux/${pkgname}_${pkgver}_i386.deb")
sha256sums=('508512464e24126fddfb2c41a1e2e86624bdb0c0748084b6a922573b6cf6b9c5'
'99fc0d2822edd14e234d451995db47148125e4580221a292598959421d131231')
sha256sums_x86_64=('8375c2ac7ce44ecd3465a3fa15e5f567a0986e8b09159e61c1748279fd9effd4')
sha256sums_i686=('c2830bf3ceb237ebe04857fcafe4a3f136b58165311dde1710a236671056c3fd')
prepare() {
cd ${srcdir}/
sed -i -e "s/%pkgname%/${pkgname}/g" \
-e "s/%operabin%/${pkgname}\/${pkgname}/g" \
opera default
}
package() {
cd ${srcdir}/
# this is nested archive with final directory structure,
# so extract the inner tarball to ${pkgdir}
tar xJf data.tar.xz -C "${pkgdir}/"
# get rid of the extra subfolder {i386,x86_64}-linux-gnu
(
cd "${pkgdir}/usr/lib/"*-linux-gnu/
mv "${pkgname}" ../
)
rm -rf "${pkgdir}/usr/lib/"*-linux-gnu
# set suid bit for Opera sandbox
chmod 4755 "${pkgdir}/usr/lib/${pkgname}/opera_sandbox"
# install default options
install -Dm644 "default" "${pkgdir}/etc/${pkgname}/default"
# install opera wrapper
rm "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "opera" "${pkgdir}/usr/bin/${pkgname}"
# license
install -Dm644 \
"${pkgdir}/usr/share/doc/${pkgname}/copyright" \
"${pkgdir}/usr/share/licenses/${pkgname}/copyright"
}
|