summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc5c202f0cb15d87ad84ee4c17c3daff043288c5 (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
# Maintainer: Nico <d3sox at protonmail dot com>
pkgname=tunnelto
pkgver=0.1.14
pkgrel=2
pkgdesc="Expose your local web server to the internet with a public URL."
arch=('any')
url="https://tunnelto.dev/"
license=('MIT')
makedepends=('cargo' 'git')
conflicts=('tunnelto')
provides=('tunnelto')
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}"
}