blob: 41874f99e923123ac33a10516da8c216685fb4bf (
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
|
# Maintainer: Feakster <feakster at posteo dot eu>
# Contributor: Felix Golatofski <contact at xdfr dot de>
# Contributor: Matthew Zilvar <mattzilvar at gmail dot com>
# Contributor: Térence Clastres <t dot clastres at gmail dot com>
### Info ###
pkgname=vivaldi-arm-bin
_pkgname=${pkgname%-arm-bin}
pkgver=3.7.2218.45
pkgrel=1
_pkgrel=1
pkgdesc='An advanced browser made with the power user in mind'
arch=('armv6h' 'armv7h' 'aarch64')
url="https://vivaldi.com"
license=('custom:Vivaldi EULA')
provides=('vivaldi' 'www-browser')
depends=('alsa-lib' 'desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'libcups' 'libxss' 'nss' 'shared-mime-info' 'ttf-font')
optdepends=(
'libnotify: native notifications'
)
options=('!emptydirs' '!strip')
install='update-ffmpeg.install'
_source_armhf=("https://downloads.vivaldi.com/stable/vivaldi-stable_${pkgver}-${_pkgrel}_armhf.deb")
source_armv6h=("$_source_armhf")
source_armv7h=("$_source_armhf")
source_aarch64=("https://downloads.vivaldi.com/stable/vivaldi-stable_${pkgver}-${_pkgrel}_arm64.deb")
b2sums_armv6h=('2edfa3bbabf646be447a3a9265a102bb0ddfaeed7562072c7a2a59e6b860c7d094a23cc4b6c8c07d69e96746244e0e8a4c2a0a42f806831f7defdc5149420de1')
b2sums_armv7h=('2edfa3bbabf646be447a3a9265a102bb0ddfaeed7562072c7a2a59e6b860c7d094a23cc4b6c8c07d69e96746244e0e8a4c2a0a42f806831f7defdc5149420de1')
b2sums_aarch64=('85737bbb82dc9b971996cabef7dcca334c3155616a2b881436376aadd141b1898b6438e984f4cc53bbe1f7496ef46ac14d17242314a817e9e0a49ce61301863f')
### Prepare ###
prepare() {
## Extract Internals ##
tar -xf data.tar.xz
}
### Package ###
package() {
## Copy Directory Structure ##
cp --parents -a {opt,usr} "$pkgdir"
## SUID Sandbox ##
chmod 4755 "$pkgdir"/opt/$_pkgname/${_pkgname}-sandbox
## Icons ##
for res in 16 22 24 32 48 64 128 256; do
install -dm0755 "$pkgdir"/usr/share/icons/hicolor/${res}x${res}/apps
ln -fs \
/opt/$_pkgname/product_logo_${res}.png \
"$pkgdir"/usr/share/icons/hicolor/${res}x${res}/apps/$_pkgname.png
done
## License ##
install -dm0755 "$pkgdir"/usr/share/licenses/$_pkgname
ln -fs \
/opt/$_pkgname/LICENSE.html \
"$pkgdir"/usr/share/licenses/$_pkgname/LICENSE.html
## Remove Debian/Widevine Directories/Files ##
rm -rf "$pkgdir"/opt/$_pkgname/{cron,update-widevine,WidevineCdm}
}
|