summaryrefslogtreecommitdiff
path: root/mercury-browser-avx2/template
blob: c521752b2ab7bed8ff829f24c92115d4a3d90159 (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
# Template file for 'mercury-browser-avx2'
pkgname=mercury-browser-avx2
version=123.0.1
revision=1
archs="x86_64"
#build_wrksrc=
#build_style=gnu-configure
#configure_args=""
#make_build_args=""
#make_install_args=""
#conf_files=""
#make_dirs="/var/log/dir 0755 root root"
hostmakedepends="unzip"
makedepends=""
depends="ffmpeg alsa-lib dbus-glib libnotify gtk+3"
short_desc="Mercury Browser"
maintainer="gesang <gesang@itinerariummentis.org>"
license="MPL-2.0"
homepage="https://thorium.rocks/mercury"
#changelog=""
distfiles=https://github.com/Alex313031/Mercury/releases/download/v.${version}/mercury_${version}_linux_AVX2.zip
checksum=886311c29477ba830aa6875b0be4315e0e9fb853a44a08e649174239d2c33ed5

do_install(){
	cd ${wrksrc}
	install -Dvm644 /dev/stdin ${wrksrc}/${pkgname}.desktop <<END
[Desktop Entry]
Version=${version}
Name=Mercury Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer;Mercury
Exec=/opt/mercury-browser/mercury/mercury-bin %u
StartupWMClass=mercury-default
Terminal=false
X-MultipleArgs=true
Type=Application
Icon=$pkgname
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=NewWindow;NewPrivateWindow;TempUserDir;

[Desktop Action NewWindow]
Name=New Window
Exec=/opt/mercury-browser/mercury/mercury-bin -new-window

[Desktop Action NewPrivateWindow]
Name=New Private Window
Exec=/opt/mercury-browser/mercury/mercury-bin -private-window

[Desktop Action TempUserDir]
Name=Open With Temporary User Profile
Exec=/opt/mercury-browser/mercury/mercury-bin --temp-profile
END

	mkdir -p ${DESTDIR}/opt/mercury-browser
	mkdir -p ${DESTDIR}/usr/bin
	mkdir -p ${DESTDIR}/usr/share/applications
	cp -r ${wrksrc}/mercury ${DESTDIR}/opt/mercury-browser
	cp -r ${wrksrc}/${pkgname}.desktop ${DESTDIR}/usr/share/applications/${pkgname}.desktop
	ln -s /opt/mercury-browser/mercury/mercury-bin ${DESTDIR}/usr/bin/mercury-bin
}