summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61b5694a858f85229614b6fa6d22b9508c73093a (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
# Maintainer: celenity <celenity@celenity.dev>
pkgname=phoenix-arch
pkgver=202501141
pkgrel=1
pkgdesc="Phoenix is a suite of configurations & advanced modifications for Mozilla Firefox, designed to put the user first - with a focus on privacy, security, freedom, & usability."
arch=(any)
license=('GPL3')
url="https://phoenix.celenity.dev"
source=("https://codeberg.org/celenity/Phoenix/raw/commit/9a8d914f242bc10669c3ad7972aca184e66753d8/archives/phoenix.zip")
sha512sums=('66bb2e567914a256520c602f8ebff6791be8f555960320c2b4d697f3df218a4ccf734e016d7e5046b6210c1a1d9c400bb7009cd62cafa7edb623d4cdd3173605')

pkgver() {
    echo "$pkgver"
}

package() {
    local tmpdir=$(mktemp -d)

    unzip "$srcdir/phoenix.zip" -d "$tmpdir"

    install -Dm644 "$tmpdir/filter.pac" "$pkgdir/etc/firefox/phoenix/resources/filter.pac"
    install -Dm644 "$tmpdir/configs/dev.cfg" "$pkgdir/etc/firefox/phoenix/configs/dev.cfg"
    install -Dm644 "$tmpdir/configs/discord.cfg" "$pkgdir/etc/firefox/phoenix/configs/discord.cfg"
    install -Dm644 "$tmpdir/configs/element.cfg" "$pkgdir/etc/firefox/phoenix/configs/element.cfg"
    install -Dm644 "$tmpdir/configs/hardened.cfg" "$pkgdir/etc/firefox/phoenix/configs/hardened.cfg"
    install -Dm644 "$tmpdir/configs/hardened-no-sync.cfg" "$pkgdir/etc/firefox/phoenix/configs/hardened-no-sync.cfg"
    install -Dm644 "$tmpdir/configs/no-sync.cfg" "$pkgdir/etc/firefox/phoenix/configs/no-sync.cfg"
    install -Dm644 "$tmpdir/configs/twitter.cfg" "$pkgdir/etc/firefox/phoenix/configs/twitter.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/dev.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/dev.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/discord.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/discord.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/element.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/element.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/hardened.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/hardened.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/hardened-no-sync.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/hardened-no-sync.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/no-sync.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/no-sync.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/twitter.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/twitter.cfg"
    install -Dm644 "$tmpdir/configs/ui-fix/youtube.cfg" "$pkgdir/etc/firefox/phoenix/configs/ui-fix/youtube.cfg"
    install -Dm644 "$tmpdir/configs/youtube.cfg" "$pkgdir/etc/firefox/phoenix/configs/youtube.cfg"
    install -Dm644 "$tmpdir/defaults/pref/phoenix.js" "$pkgdir/etc/firefox/defaults/pref/phoenix.js"
    install -Dm644 "$tmpdir/etc/profile.d/phoenix-env-overrides.sh" "$pkgdir/etc/profile.d/phoenix-env-overrides.sh"
    install -Dm644 "$tmpdir/phoenix.cfg" "$pkgdir/usr/lib/firefox/phoenix.cfg"
    install -Dm644 "$tmpdir/policies.json" "$pkgdir/etc/firefox/policies/policies.json"
    install -Dm644 "$tmpdir/userjs/linux/dev/user.js" "$pkgdir/etc/firefox/phoenix/userjs/dev/user.js"
    install -Dm644 "$tmpdir/userjs/linux/discord/user.js" "$pkgdir/etc/firefox/phoenix/userjs/discord/user.js"
    install -Dm644 "$tmpdir/userjs/linux/element/user.js" "$pkgdir/etc/firefox/phoenix/userjs/element/user.js"
    install -Dm644 "$tmpdir/userjs/linux/hardened/user.js" "$pkgdir/etc/firefox/phoenix/userjs/hardened/user.js"
    install -Dm644 "$tmpdir/userjs/linux/hardened-no-sync/user.js" "$pkgdir/etc/firefox/phoenix/userjs/hardened-no-sync/user.js"
    install -Dm644 "$tmpdir/userjs/linux/no-sync/user.js" "$pkgdir/etc/firefox/phoenix/userjs/no-sync/user.js"
    install -Dm644 "$tmpdir/userjs/linux/twitter/user.js" "$pkgdir/etc/firefox/phoenix/userjs/twitter/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/dev/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/dev/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/discord/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/discord/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/element/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/element/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/hardened/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/hardened/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/hardened-no-sync/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/hardened-no-sync/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/no-sync/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/no-sync/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/twitter/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/twitter/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix/youtube/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix/youtube/user.js"
    install -Dm644 "$tmpdir/userjs/linux/ui-fix-base/user.js" "$pkgdir/etc/firefox/phoenix/userjs/ui-fix-base/user.js"
    install -Dm644 "$tmpdir/userjs/linux/youtube/user.js" "$pkgdir/etc/firefox/phoenix/userjs/youtube/user.js"
    install -Dm644 "$tmpdir/README.md" "$pkgdir/usr/share/doc/phoenix/README.md"

    rm -rf "$tmpdir"
}