happ-desktop 2.16.2
Happ Proxy Client
Не провереноПроисхождение пакета не подтверждено.
Используемые названия и товарные знаки принадлежат соответствующим владельцам.
1name=happ-desktop
2version=2.16.2
3release=1
4summary="Happ Proxy Client"
5group="Other"
6desc="Happ is a user-friendly GUI client for xray-core with advanced features:
7
8 - Xray-core integration for proxy functionality
9 - TUN/VPN mode support via sing-box
10 - Anti-censorship tools (byedpi)
11 - QR code support for easy configuration sharing
12 - Subscription management
13"
14maintainer="Oleg Shchavelev <oleg@alt-gnome.ru>"
15architectures=(
16 "amd64"
17 "arm64"
18)
19homepage="https://www.happ.su"
20appstream_app_id="su.happ.Happ"
21license=("custom")
22
23nonfree=1
24nonfree_url="https://www.happ.su/main/privacy-policy"
25
26provides=()
27conflicts=(
28 "happ"
29 )
30
31sources_amd64=(
32 "https://github.com/Happ-proxy/$name/releases/download/$version/Happ.linux.x64.deb"
33)
34
35sources_arm64=(
36 "https://github.com/Happ-proxy/$name/releases/download/$version/Happ.linux.arm64.deb"
37)
38
39checksums_amd64=(
40 sha256:51f7ce0429a4daf5ec0201a7758641054efdeafac776285a0788e506b38bfff5
41)
42
43checksums_arm64=(
44 sha256:c6c8db16bb42654e530859c6f3a3dee84f6a1bc630b785f1bb264f3f83d0c7c6
45)
46
47build_deps=(
48 "desktop-file-utils"
49)
50
51deps=(
52
53)
54
55# happd.service lifecycle: refresh systemd on install/remove and stop+disable
56# the daemon when the package is fully removed (handled inside the scripts).
57scripts=(
58 ['postinstall']='postinstall.sh'
59 ['preremove']='preremove.sh'
60 ['postremove']='postremove.sh'
61)
62
63auto_reqprov_method=dirty
64auto_req=1
65auto_prov=1
66
67disable_network=1
68
69package() {
70 tar -xf data.tar.zst -C "$pkgdir/"
71
72 # The window's Wayland app_id / X11 WM_CLASS is "Happ", so GNOME needs
73 # StartupWMClass=Happ to match the running window to this launcher
74 # (otherwise a generic icon shows in the dash/taskbar).
75 # desktop-file-edit sets the key in the [Desktop Entry] group,
76 # overwrites any stale/wrong-case value, and rewrites the file with a
77 # proper trailing newline - the latter also keeps distrobox-export from
78 # merging its own appends into the last line.
79 desktop-file-edit --set-key=StartupWMClass --set-value=Happ \
80 "$pkgdir/usr/share/applications/Happ.desktop"
81
82 # The upstream .deb ships the unit in /etc/systemd/system, but
83 # package-owned units belong in /usr/lib/systemd/system - /etc is
84 # reserved for the admin and for "enable" symlinks. Relocate it so
85 # files-find-systemd picks it up.
86 install -Dm644 "$pkgdir/etc/systemd/system/happd.service" \
87 "$pkgdir/usr/lib/systemd/system/happd.service"
88 rm -f "$pkgdir/etc/systemd/system/happd.service"
89}
90
91files() {
92 files-find \
93 "/opt/happ/**/*" \
94 "/usr/share/mime/packages/happ-mime.xml" \
95 "/usr/share/icons/hicolor/256x256/apps/happ.png"
96 files-find-systemd
97 files-find-binary \
98 "happ"
99 files-find-desktop \
100 "Happ.desktop"
101
102}