summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89c007e27bad86eca595e38ae7ca46d940588750 (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
# Maintainer: zotan <aur@zotan.email>

pkgname=snid
pkgver=0.3.0
pkgrel=1
pkgdesc="SNI-based Proxy Server"
arch=(i686 x86_64 arm armv6h armv7h aarch64)
url="https://github.com/AGWA/snid"
license=(MIT)
depends=(glibc)
makedepends=(go)
source=("$pkgname-$pkgver.tar.gz::https://github.com/AGWA/snid/archive/v$pkgver.tar.gz")
sha256sums=('1557dbf460badcb2f88cf1979a09bdfa17f1caf6b506eb1e348e4e7a63010d2f')

build() {
  cd "$pkgname-$pkgver"
  export GOPATH="$SRCDEST/go-modules"

  go build \
    -gcflags "all=-trimpath=${PWD}" \
    -asmflags "all=-trimpath=${PWD}" \
    -ldflags "-extldflags ${LDFLAGS}"
}

package() {
  cd "$pkgname-$pkgver"
  install -D snid ${pkgdir}/usr/bin/snid
}