-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtinfoil-0.5_p20201123.ebuild
54 lines (37 loc) · 1.44 KB
/
tinfoil-0.5_p20201123.ebuild
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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="A minimalist tool to manage multiple profiles for web browsers."
HOMEPAGE="https://github.com/dyne/tinfoil"
EGIT_REPO_URI="https://github.com/dyne/tinfoil.git"
EGIT_COMMIT="66688d8c72406357f74a1f8e75ddff0ebbdb4114"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-ma
cos ~x64-macos ~x64-solaris"
IUSE=""
DEPEND="app-shells/zsh"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
EGIT_MIN_CLONE_TYPE="single"
src_install() {
dodir /usr/share/tinfoil
dodir /usr/bin
insinto /usr/share/tinfoil
doins -r templates
rm -r "${S}/zuper/.git" "${S}/zuper/.gitignore"
doins -r zuper
# Replicate what was done by Makefile
sed "s/^basedir=./basedir=\/usr\/share\/tinfoil/g" "${S}/tinfoil" > "${D}/usr/bin/tinfoil" || die "Failed to patch tinfoil script"
fperms +x /usr/bin/tinfoil
insinto /usr/bin
doins "${S}/tinfoil-firejail" "${S}/tinfoil-dmenu"
fperms +x /usr/bin/tinfoil-firejail /usr/bin/tinfoil-dmenu
einstalldocs
}
pkg_postinst() {
optfeature "sandboxing" "sys-apps/firejail"
optfeature "browsers" "www-client/firefox" "www-client/firefox:esr" "www-client/icecat" "www-client/palemoon" "www-client/chromium" "www-client/ungoogled-chromium" "www-client/chrome"
optfeature "dmenu" "x11-misc/dmenu"
}