summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10d6fe5d28fbca30c5f27675a86db6aef82c9d32 (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
# Maintainer: Nico <d3sox at protonmail dot com>
pkgname=tunnelto
pkgver=0.1.18
pkgrel=1
pkgdesc="Expose your local web server to the internet with a public URL."
arch=('any')
url="https://tunnelto.dev/"
license=('MIT')
makedepends=('cargo' 'git')
source=("git+https://github.com/agrinman/$pkgname#tag=$pkgver")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  cargo build --release --locked --all-features --target-dir=target
}

package() {
  cd "$srcdir/$pkgname"
  # install binary
  install -Dm 755 target/release/tunnelto -t "${pkgdir}/usr/bin"
  #install -Dm 755 target/release/tunnelto_server -t "${pkgdir}/usr/bin"
  # install license
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}