blob: 7b9fa6c213483a110a3a7e3cf1d5694d001ecb1d (
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: Pony pony@just-a-pony.net
pkgname=realitlscanner
_pkgname=RealiTLScanner
pkgver=0.2.1
pkgrel=1
pkgdesc="A TLS server scanner for Reality "
arch=('x86_64')
url="https://github.com/XTLS/RealiTLScanner"
license=('MPL2')
depends=('glibc')
makedepends=('go')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('cd9da78b6922053f51dcb318b8f258c80d3a08f708a96a0baa66bf86bb907013')
build() {
cd "${srcdir}"/"${_pkgname}-${pkgver}"/
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
go build -o realitlscanner .
}
package() {
cd "${srcdir}"/"${_pkgname}-${pkgver}"/
install -Dm 755 realitlscanner -t "${pkgdir}"/usr/bin/
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/realitlscanner/
}
|