summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4407c2474d5b5301efb1926286d74e19b25da192 (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
# Maintainer: Avi Zimmerman <avi.zimmerman@gmail.com>

pkgname="webmesh-git"
pkgver="0.17.1"
pkgrel="1"
pkgdesc="A service mesh for the web"
arch=("x86_64" "aarch64" "armv6h" "i686" "s390x" "ppc64le")
url="https://webmeshproj.github.io"
license=("Apache-2.0")

makedepends=("make" "go" "upx")
optdepends=("wireguard-tools: for debugging")
conflicts=("webmesh-bin" "webmesh")

source=("git+https://github.com/webmeshproj/webmesh.git?ref=v$pkgver")
sha256sums=("SKIP")

build() {
    cd "$srcdir/webmesh"
    git fetch --all --tags
    make
}

package() {
    cd "$srcdir/webmesh"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 contrib/systemd/webmeshd.service "$pkgdir/usr/lib/systemd/system/webmeshd.service"
    install -Dm755 dist/**/webmesh-node "$pkgdir/usr/bin/webmesh-node"
    install -Dm755 dist/**/wmctl "$pkgdir/usr/bin/wmctl"
}

# vim:set ts=2 sw=2 et: