blob: 6fbbf986697be6b45a8b80ba3815fa3922a3aae1 (
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
|
pkgname=realitlscanner-git
pkgver=0.2.1.r0.g9bf9dfaf
pkgrel=1
pkgdesc="A TLS server scanner for Reality"
arch=("any")
url="https://github.com/XTLS/RealiTLScanner"
license=("MPL-2.0")
depends=("glibc")
makedepends=("go" "git")
backup=()
provides=("realitlscanner")
conflicts=("realitlscanner")
source=("git+${url}.git")
sha256sums=("SKIP")
function pkgver(){
cd RealiTLScanner
git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
function build(){
cd RealiTLScanner
go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags "-linkmode external -extldflags \"${LDFLAGS}\""
}
function package(){
cd RealiTLScanner
install -Dm755 "${srcdir}/RealiTLScanner/RealiTLScanner" "${pkgdir}/usr/bin/realitlscanner"
}
|