blob: a5aa8c040ede849b7502773df3888dace5d51b30 (
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
|
# Maintainer: tee < teeaur at duck dot com >
pkgname=rayfish-bin
pkgver=0.4.1
pkgrel=1
pkgdesc="P2P mesh VPN powered by iroh"
arch=(x86_64 aarch64)
url='https://rayfish.xyz'
license=(MPL-2.0)
provides=(rayfish)
conflicts=(rayfish)
source=("https://github.com/rayfish/rayfish/raw/v$pkgver/contrib/rayfish.service")
source_x86_64=("rayfish-$CARCH-$pkgver.sha256::https://github.com/rayfish/rayfish/releases/download/v$pkgver/ray-linux-x86_64.sha256"
"rayfish-$CARCH-$pkgver::https://github.com/rayfish/rayfish/releases/download/v$pkgver/ray-linux-x86_64")
source_aarch64=("rayfish-aarch64-$pkgver.sha256::https://github.com/rayfish/rayfish/releases/download/v$pkgver/ray-linux-aarch64.sha256"
"rayfish-aarch64-$pkgver::https://github.com/rayfish/rayfish/releases/download/v$pkgver/ray-linux-aarch64")
b2sums=('f468b96d7596587fbb9cfd3701a431b5422c107888c7cfb7eac31228d70ed6110c91a8f5fdeb2f2b513d3f62716b20f651cfc8bd7bcfb7b88fbaf998d698f992')
b2sums_x86_64=('SKIP'
'6200fbd4fbdf35682730cecb12f59f0c6e5155f5816687190ccfacee96433080bffdcd75b40255c597546805f14ae88e1bc68b6750329091cd6ef705311e39d8')
b2sums_aarch64=('SKIP'
'398b52afe164a0eb68b8bf6f869cd1172b2f9a5d2396441d08c236158c2497f0a62a8a8bf10f095b47cbdbef77d1c88ca765d5a4bc84b6aa07bc1fa1e1f0ee85')
package() {
install -Dm755 "rayfish-$CARCH-$pkgver" "$pkgdir/usr/bin/ray"
sed -i "s|/local||" rayfish.service
install -Dm644 rayfish.service -t "$pkgdir/usr/lib/systemd/system/"
install -Dm644 <("$pkgdir/usr/bin/ray" completions bash 2>/dev/null) "$pkgdir/usr/share/bash-completion/completions/ray"
install -Dm644 <("$pkgdir/usr/bin/ray" completions fish 2>/dev/null) "$pkgdir/usr/share/fish/vendor_completions.d/ray.fish"
install -Dm644 <("$pkgdir/usr/bin/ray" completions zsh 2>/dev/null) "$pkgdir/usr/share/zsh/site-functions/_ray"
install -Dm644 <("$pkgdir/usr/bin/ray" completions elvish 2>/dev/null) "$pkgdir/usr/share/elvish/lib/ray.elv"
}
|