blob: 4ee9d6faad676e2a0b98bb056b2393065d66e23b (
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
|
# Maintainer: Dee.H.Y <dongfengweixiao AT hotmail DOT com>
pkgname=flclash-bin
_pkgname=flclash
pkgver=0.8.68
pkgrel=1
pkgdesc="A multi-platform proxy client based on ClashMeta,simple and easy to use, open-source and ad-free."
arch=('x86_64')
url="https://github.com/chen08209/FlClash"
license=('GPL-3.0-only')
conflicts=("flclash-git" "flclash")
install="flclash.install"
depends=(
'cairo'
'at-spi2-core'
'hicolor-icon-theme'
'libdbusmenu-glib'
'gtk3'
'libepoxy'
'pango'
'gdk-pixbuf2'
'harfbuzz'
'fontconfig'
'libayatana-indicator'
'ayatana-ido'
'glib2'
'glibc'
'gcc-libs'
)
optdepends=(
'libayatana-appindicator: Display tray icon'
'libkeybinder3: Multimedia key support under non Gnome setups'
)
makedepends=(
'patchelf'
)
source=(
"${_pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-amd64.deb"
)
sha256sums=('d839d5909d638b397d975ab5bd54414dbeb22b9e57583493cec5b0aff526ff6e')
package() {
msg "Converting debian package..."
cd "$srcdir"
tar -I zstd -xvf data.tar.zst -C "$pkgdir"
# runpath
patchelf --set-rpath '$ORIGIN/lib' "$pkgdir"/usr/share/FlClash/FlClash
for i in "$pkgdir"/usr/share/FlClash/lib/*.so; do
echo "find so $i"
[ -z "$(patchelf --print-rpath "$i")" ] && continue
patchelf --set-rpath '$ORIGIN' "$i"
done
# permissions
chmod -R u+rwX,go+rX,go-w "$pkgdir/"
}
|