blob: a5d054fedd7d4efbfc40f05ebeda0a93b7f6f61b (
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: ShoreNinth <shoreninth@outlook.com>
_pkgname=goby
pkgname=goby-community
pkgver=2.9.11
pkgrel=1
pkgdesc="Goby 社区版 | Goby Community Edition"
arch=("x86_64")
url="https://gobies.org/"
license=('unknown')
options=("!strip" "!debug")
depends=(
"atk"
"gtk3"
"libpcap"
)
makedepends=(
"libcap"
)
source=(
"https://$_pkgname-storage-public.oss-cn-beijing.aliyuncs.com/$pkgver/$_pkgname-linux-x64-$pkgver-Community.zip"
"$pkgname.desktop"
"$pkgname.png"
)
sha256sums=(
'9129eeaa23391750a1525d1201c4c64470503a08bf1afa003fbf04e965c72aa6'
'0624f9c1aa7377ccb5bd6b6a54a3dbea3cdd1a1e838a154c73bd01d22ff5fc3f'
'11e10dc114bd6cd8ecfe018b277798f1c7727f113c15ebc09090682f8575bb1f'
)
prepare() {
cd "${srcdir}"
bsdtar -xpf $_pkgname-linux-x64-$pkgver-Community.zip
}
package() {
# cd $srcdir/$pkgname
install -d $pkgdir/{opt/$pkgname,usr/bin}
mv ./$_pkgname-linux-x64-$pkgver/* $pkgdir/opt/$pkgname
ln -s /opt/$pkgname/goby $pkgdir/usr/bin/$pkgname
ln -s /opt/$pkgname/goby/golib/goby-cmd-linux $pkgdir/usr/bin/$pkgname-cmd
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
chmod -R ugo+rwX $pkgdir/opt/$pkgname
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' $pkgdir/opt/$pkgname/golib/goby-cmd-linux
}
|