blob: 5422de0c41d1333dcc50e0de2dfd9a4aef9bf7b9 (
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
|
# Maintainer: czyt <czytcn@gmail.com>
pkgname=karing-bin
pkgver=1.2.22.2502
pkgrel=1
pkgdesc="Simple & Powerful proxy utility, Support routing rules for clash/sing-box"
arch=('x86_64')
url="https://github.com/KaringX/karing"
license=('GPL-3.0-or-later')
depends=(
'gtk3'
'libayatana-appindicator'
'glib2'
'libnotify'
'libsecret'
'xdg-user-dirs'
'zenity'
'libkeybinder3'
)
optdepends=(
'libappindicator-gtk3: for system tray icon support'
)
provides=('karing')
conflicts=('karing' 'karing-git')
source=("${pkgname}-${pkgver}.deb::https://github.com/KaringX/karing/releases/download/v${pkgver}/karing_${pkgver}_linux_amd64.deb")
sha256sums=('fc79de8d4069576b430a5deb296804d832aeaa4147fde312d2e7cfa0ca43a5ae')
noextract=("${pkgname}-${pkgver}.deb")
package() {
cd "${srcdir}"
bsdtar -xf "${pkgname}-${pkgver}.deb"
bsdtar -xf data.tar.zst -C "${pkgdir}"
find "${pkgdir}" -type d -exec chmod 755 {} \;
# Set proper permissions for executables
if [ -d "${pkgdir}/usr/share/karing" ]; then
find "${pkgdir}/usr/share/karing" -type f -name "karing" -exec chmod 755 {} \;
fi
# Remove unnecessary documentation
rm -rf "${pkgdir}/usr/share/doc"
# Create symlink for the binary
install -dm755 "${pkgdir}/usr/bin"
ln -sf "/opt/karing/karing" "${pkgdir}/usr/bin/karing"
}
|