summaryrefslogtreecommitdiff
path: root/palemoon-gtk3/template
blob: 5cd9fafcac0da98c2ce2c4a98117aa411c163340 (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
# Template file for 'palemoon-gtk3'
pkgname=palemoon-gtk3
version=33.1.0
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=""
makedepends=""
depends="ffmpeg alsa-lib dbus-glib libnotify gtk+3"
short_desc="Palemoon Browser"
maintainer="gesang <gesang@itinerariummentis.org>"
license="MPL-2.0"
homepage="https://www.palemoon.org/"
nostrip_files="palemoon palemoon-bin plugin-container updater"
#changelog=""
distfiles=https://rm-eu.palemoon.org/release/palemoon-${version}.linux-x86_64-gtk3.tar.xz
checksum=db92db16f2b9810b72600b6e26d516fd9dbb16eb8d1d6647156d81014d8d9d3c

do_install(){
	cd ${wrksrc}
	install -Dvm644 /dev/stdin ${wrksrc}/${pkgname}.desktop <<END
[Desktop Entry]
Version=${version}
Name=Palemoon Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer;Mercury
Exec=/opt/palemoon-browser/palemoon-bin %u
StartupWMClass=palemoon-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/palemoon-browser/palemoon-bin -new-window

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

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

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