blob: ecb577b01747581057f4c1f7536a920324620c55 (
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
|
# Maintainer: shyam (shyamganesh01@gmail.com)
_base=chisel
pkgname=chisel-jpillora
pkgver=v1.10.1
pkgrel=1
pkgdesc="Chisel is a fast TCP/UDP tunnel, transported over HTTP, secured via SSH. Single executable including both client and server."
arch=(any)
url="https://github.com/jpillora/chisel"
license=(MIT)
source=("README_${pkgver}.md::https://raw.githubusercontent.com/jpillora/chisel/$pkgver/README.md"
"LICENSE_${pkgver}::https://raw.githubusercontent.com/jpillora/chisel/$pkgver/LICENSE")
makedepends=('github-cli' 'gzip')
sha512sums=('34c21f6dbdd72b071a4a3ee6268735afa4d6f4bec95be71f513554dd291db15db38eb1123bd85b5e426e80f7012303eb102449df41d86e983f2326031ff93605'
'3578e4ff3bf6bf2cbe3f595ed648dadf6d82046b1b2ab53878aa9d67bc29a5ae9cd0713cc9291508f846f279418452d6cc88021e3bbe5e3f66949b07df6b507e')
conflicts=('chisel-tunnel' 'chisel-tunnel-bin')
provides=('chisel-jpillora')
pkgver() {
gh release view -R jpillora/chisel --json tagName --jq '.tagName' -q '.[]' | sort -V | tail -n 1 | cut -d '-' -f 2
}
prepare() {
gh release download --pattern '*arm*' --pattern '*amd*' -R ${url} --clobber
}
package() {
# Install to /usr/share/chisel
find . -exec gzip {} \;
## Linux
find . -name "*linux*" -printf "%f\n" -exec install -Dm644 {} "${pkgdir}/usr/share/${_base}/linux/{}" \;
## Windows
find . -name "*windows*" -printf "%f\n" -exec install -Dm644 {} "${pkgdir}/usr/share/${_base}/windows/{}" \;
## MacOS
find . -name "*darwin*" -printf "%f\n" -exec install -Dm644 {} "${pkgdir}/usr/share/${_base}/mac/{}" \;
install -D -m644 "README_${pkgver}.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm 644 LICENSE_${pkgver} -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|