summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f13c414791966253b3d9591801ca6a32647a3c0d (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
# Maintainer: ManiacTwister <aur@maniactwister.de>
pkgname=tunneller-git
pkgver=release.0.6.r7.gf02ebdb
pkgrel=1
pkgdesc='Tunneller allows you to expose services which are running on localhost, or on your local network, to the public internet.'
arch=('x86_64')
url='https://github.com/skx/tunneller'
license=('GPL')
makedepends=('git' 'go-pie')
source=("$pkgname::git+https://github.com/skx/tunneller.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$pkgname"

  go build \
    -trimpath \
    -ldflags "-extldflags $LDFLAGS" \
    -o tunneller .
}

package() {
  cd $pkgname
  install -Dm755 tunneller  "$pkgdir"/usr/bin/tunneller
}