blob: 28f5ba105d2c07db6fe79172b5a302e38f1e35a3 (
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
65
66
67
68
69
70
71
72
|
# Maintainer: tarball <bootctl@gmail.com>
pkgname=netbird-ui
pkgver=0.34.1
pkgrel=1
pkgdesc='Official GUI for the Netbird client'
url='https://netbird.io'
arch=(i686 pentium4 x86_64 arm armv7h armv6h aarch64 riscv64)
license=(BSD-3-Clause)
depends=(
at-spi2-core
ayatana-ido
cairo
gdk-pixbuf2
glib2
glibc
gtk3
harfbuzz
libayatana-appindicator
libayatana-indicator
libdbusmenu-glib
libglvnd
libx11
libxcursor
libxi
libxinerama
libxrandr
libxxf86vm
netbird
pango
zlib
)
makedepends=(go)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/netbirdio/netbird/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=('5eb78e815c73b197f36141dbc071520171cd660a1f64a010c5ec5c4db4d006e4')
prepare() {
cd "$srcdir/netbird-$pkgver"
mkdir -p build
go mod download
}
build() {
export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
cd "$srcdir/netbird-$pkgver/client/ui"
go build \
-ldflags "-s -w -linkmode=external -extldflags \"$LDFLAGS\"" \
-o ../../build/"$pkgname"
}
package() {
cd "$srcdir/netbird-$pkgver"
install -Dm755 build/$pkgname \
"$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd client/ui
install -Dm644 netbird.desktop \
"$pkgdir/usr/share/applications/netbird.desktop"
install -Dm644 netbird.ico \
"$pkgdir/usr/share/icons/netbird.ico"
}
|