blob: 808f46aa589582c0d1ddeb378c4c6d74737881b3 (
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
|
# Maintainer: m4rsquake <m4rsquake@outlook.com>
pkgname=gui-for-singbox-bin
_pkgname=GUI.for.SingBox
_installdir=gui-for-singbox
pkgver=1.27.0
pkgrel=2
pkgdesc='GUI for SingBox, a GUI client application for sing-box.'
arch=('x86_64')
license=('GPL3')
depends=(
'glibc'
'libcap'
'polkit'
'sing-box-bin'
'webkit2gtk-4.1'
)
provides=("${pkgname%-bin}")
conflicts=(
'gui-for-singbox'
'gui.for.singbox'
)
url="https://github.com/GUI-for-Cores/${_pkgname}"
install="${pkgname%-bin}.install"
source=(
"${pkgname}-${pkgver}.zip::https://github.com/GUI-for-Cores/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-linux-amd64.zip"
"${pkgname}-${pkgver}.png::https://raw.githubusercontent.com/GUI-for-Cores/${_pkgname}/main/build/appicon.png"
"${pkgname%-bin}.desktop"
"${pkgname%-bin}-launcher"
"${pkgname%-bin}.install"
"${pkgname%-bin}.rules"
"${pkgname%-bin}-setcap.hook"
)
sha256sums=('84085dfcd278633bdaa5280e80ca928871094f3c1f52a5821d3e0d74959d9b87'
'08257d0d21c76a56e48e38105460927293a452ddc6b0b62db401bf5b5b9b7adf'
'ac72d374ce5cfaf485fe640a17b8b320c6fea98f68b7e6a92aa78d142fba1916'
'a15e696f65bb1eb6bb53db85414d20b25549d3fa8eb52b70e6ee56f3bcbf5d82'
'1810de67d465b42c2b1b5a7442fb57331de4848a778768fe8995df25aa588edb'
'cfcb61f2a3ef7c9b0480235079648c2807358a76edfed0926f781af446495d0b'
'36a738c513f47651016e5e74339e937b145fcf126de104e55f956868e4599ac9')
package() {
# Binary
install -Dm755 "${_pkgname}" "${pkgdir}/opt/${_installdir}/${_pkgname}"
# Icon
install -Dm644 "${pkgname}-${pkgver}.png" "${pkgdir}/opt/${_installdir}/icon/${pkgname%-bin}.png"
# Desktop entry
install -Dm644 "${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Stable command entry point
install -Dm755 "${pkgname%-bin}-launcher" "${pkgdir}/usr/bin/${_pkgname}"
# Restore the core capability whenever its binary is installed or upgraded
install -Dm644 "${pkgname%-bin}-setcap.hook" \
"${pkgdir}/usr/share/libalpm/hooks/50-${_installdir}-setcap.hook"
# Allow the desktop core process to configure systemd-resolved for TUN
install -Dm644 "${pkgname%-bin}.rules" "${pkgdir}/usr/share/polkit-1/rules.d/50-${_installdir}.rules"
# NOTE: runtime data directories are created in .install, not tracked by pacman.
}
|