diff options
author | caltlgin | 2020-12-12 09:21:49 +1300 |
---|---|---|
committer | caltlgin | 2020-12-12 09:21:49 +1300 |
commit | 6e8685bc10453904b9695d75daef4320c8a9f916 (patch) | |
tree | 06779df821db0b6db7edccda5c814d101bc07360 /PKGBUILD | |
download | aur-6e8685bc10453904b9695d75daef4320c8a9f916.tar.gz |
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ee194747a30d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='proxify' +pkgver=0.0.2 +pkgrel=1 +pkgdesc='Swiss Army knife Proxy tool for HTTP/HTTPS traffic capture, manipulation and replay' +arch=('x86_64' 'armv6h' 'aarch64') +url='https://github.com/projectdiscovery/proxify' +license=('MIT') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('e12b8d66fc6e15974263577238ef0b89f89f6515d24247abf43991c1e49aecf8') + +prepare() { + export GOPATH="${srcdir}/gopath" + go clean -modcache +} + +build() { + 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" + + cd "${pkgname}-${pkgver}" + go build -v -o "${pkgname}" ."/cmd/${pkgname}" +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/bin" + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dvm644 'LICENSE.MD' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: |