-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate
More file actions
45 lines (38 loc) · 1.74 KB
/
template
File metadata and controls
45 lines (38 loc) · 1.74 KB
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
# Template file for 'mullvad-browser'
pkgname=mullvad-browser
version=15.0.14
revision=1
# Upstream release artifacts currently provide Linux binaries only for x86_64.
archs="x86_64"
nopie=yes
nostrip=yes
hostmakedepends="curl xz"
depends="desktop-file-utils hicolor-icon-theme libnotify libavcodec xdg-utils"
short_desc="Privacy-focused browser developed by Mullvad VPN and the Tor Project"
maintainer="rich@bandaholics.cash"
license="MPL-2.0"
homepage="https://mullvad.net/browser"
changelog="https://github.com/mullvad/mullvad-browser/releases"
distfiles="https://github.com/mullvad/mullvad-browser/releases/download/15.0.14/mullvad-browser-linux-x86_64-15.0.14.tar.xz"
checksum=13fab6c1779319c121880bd40ab14abf7e20738bcfe28dd93e3aa4712e83c609
do_install() {
vmkdir opt/${pkgname}
vmkdir usr/bin
vcopy * opt/${pkgname}
chmod -R ugo+rX ${DESTDIR}/opt/${pkgname}
touch "${DESTDIR}/opt/${pkgname}/Browser/is-packaged-app"
vinstall "${FILESDIR}/mullvad-browser.desktop" 0644 usr/share/applications/
vinstall ${FILESDIR}/policies.json 644 opt/${pkgname}/Browser/distribution/
ln -sf /opt/${pkgname}/Browser/start-mullvad-browser "${DESTDIR}/usr/bin/mullvad-browser"
vinstall Browser/browser/chrome/icons/default/default48.png 0644 usr/share/pixmaps mullvad-browser.png
for size in 16 32 48 64 128; do
vinstall Browser/browser/chrome/icons/default/default${size}.png 0644 \
usr/share/icons/hicolor/${size}x${size}/apps mullvad-browser.png
done
ln -Ts /usr/share/hunspell "${DESTDIR}/opt/${pkgname}/Browser/dictionaries"
ln -Ts /usr/share/hyphen "${DESTDIR}/opt/${pkgname}/Browser/hyphenation"
ln -sf /usr/lib/libnssckbi.so "${DESTDIR}/opt/${pkgname}/Browser/libnssckbi.so"
}
post_install() {
vlicense Browser/MullvadBrowser/Docs/Licenses/Firefox.txt LICENSE
}