From 326080dad9007eda7ddba7ffb3de19b302fe49bb Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 9 Oct 2024 17:03:44 +0200 Subject: Add to AUR --- .SRCINFO | 12 ++++++++++++ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..776631c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = tlsx + pkgdesc = Fast and configurable TLS grabber focused on TLS based data collection + pkgver = 1.1.7 + pkgrel = 1 + url = https://github.com/projectdiscovery/tlsx + arch = x86_64 + license = MIT + makedepends = go + source = tlsx-1.1.7.tar.gz::https://github.com/projectdiscovery/tlsx/archive/refs/tags/v1.1.7.tar.gz + sha256sums = 2fdf4a46bed59595566a532f3bc30c758a892668a0409e7f5b54320d6235c68d + +pkgname = tlsx diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9f2d45b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Yigit Sever + +pkgname=tlsx +pkgver=1.1.7 +pkgrel=1 +pkgdesc=" Fast and configurable TLS grabber focused on TLS based data collection" +arch=('x86_64') +url="https://github.com/projectdiscovery/tlsx" +license=('MIT') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('2fdf4a46bed59595566a532f3bc30c758a892668a0409e7f5b54320d6235c68d') + +prepare() { + cd "${pkgname}-${pkgver}" + mkdir -p build/ +} + +build() { + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build ./cmd/... +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.3-70-g09d2