diff options
author | Yigit Sever | 2024-10-09 17:03:44 +0200 |
---|---|---|
committer | Yigit Sever | 2024-10-09 17:03:44 +0200 |
commit | 326080dad9007eda7ddba7ffb3de19b302fe49bb (patch) | |
tree | 4660da4ce8b3e57797538bdfec574db5112c3216 /PKGBUILD | |
download | packages-326080dad9007eda7ddba7ffb3de19b302fe49bb.tar.gz packages-326080dad9007eda7ddba7ffb3de19b302fe49bb.tar.bz2 packages-326080dad9007eda7ddba7ffb3de19b302fe49bb.zip |
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9f2d45b --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,33 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=tlsx | ||
4 | pkgver=1.1.7 | ||
5 | pkgrel=1 | ||
6 | pkgdesc=" Fast and configurable TLS grabber focused on TLS based data collection" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/projectdiscovery/tlsx" | ||
9 | license=('MIT') | ||
10 | makedepends=('go') | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
12 | sha256sums=('2fdf4a46bed59595566a532f3bc30c758a892668a0409e7f5b54320d6235c68d') | ||
13 | |||
14 | prepare() { | ||
15 | cd "${pkgname}-${pkgver}" | ||
16 | mkdir -p build/ | ||
17 | } | ||
18 | |||
19 | build() { | ||
20 | cd "${pkgname}-${pkgver}" | ||
21 | export CGO_CPPFLAGS="${CPPFLAGS}" | ||
22 | export CGO_CFLAGS="${CFLAGS}" | ||
23 | export CGO_CXXFLAGS="${CXXFLAGS}" | ||
24 | export CGO_LDFLAGS="${LDFLAGS}" | ||
25 | export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" | ||
26 | go build -o build ./cmd/... | ||
27 | } | ||
28 | |||
29 | package() { | ||
30 | cd "${pkgname}-${pkgver}" | ||
31 | install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname | ||
32 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
33 | } | ||