blob: af3aa8452725985225a35bf0a6966d75e8061f84 (
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: tarball <bootctl@gmail.com>
pkgname='netbird-bin'
_pkgname="${pkgname%-bin}"
pkgver=0.8.11
pkgrel=1
pkgdesc='A WireGuard-based mesh network that connects your devices into a single private network'
url='https://netbird.io'
arch=(x86_64 aarch64 armv6h)
license=('BSD')
provides=("${_pkgname}" wiretrustee)
conflicts=("${_pkgname}")
depends=()
makedepends=()
optdepends=()
replaces=('wiretrustee-bin')
source=(
'environment'
'netbird@.service'
'wiretrustee@.service'
)
sha256sums=('128e36e1f814a12886f3122a1809a404be17f81481275b6624e66937941f5269'
'ae5938e98c84a2dd4324208389b0a6cdf9a24cf3b66d1001a0b137e008da33ec'
'ae5938e98c84a2dd4324208389b0a6cdf9a24cf3b66d1001a0b137e008da33ec')
sha256sums_x86_64=('5c1286f5e07874bd90687ed9ed066863730d20759417ba9492941052d001c57d')
sha256sums_aarch64=('f591b4c9f0b9719a3b57a1d95ed466d42a2c41f1c52b4f293bf71be400ab8355')
sha256sums_armv6h=('7038563557e123a12ac6a386943d00005dce8a46601b22ba31e096d79ee4536b')
_base_url="https://github.com/netbirdio/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux"
source_x86_64=("${pkgname}-${pkgver}-amd64.tar.gz::${_base_url}_amd64.tar.gz")
source_aarch64=("${pkgname}-${pkgver}-arm64.tar.gz::${_base_url}_arm64.tar.gz")
source_armv6h=("${pkgname}-${pkgver}-armv6.tar.gz::${_base_url}_armv6.tar.gz")
package() {
# binary
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# config directory
install -Ddm755 -o root -g root "${pkgdir}/etc/${_pkgname}"
# environment file
install -Dm644 environment "${pkgdir}/etc/default/${_pkgname}"
# systemd unit
install -Dm644 "${_pkgname}@.service" \
"${pkgdir}/usr/lib/systemd/system/${_pkgname}@.service"
install -Dm644 "wiretrustee@.service" \
"$pkgdir/usr/lib/systemd/system/wiretrustee@.service"
# license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|