From 59b8bb0d30d416b158fd1c78bf33292754c76caa Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 4 Sep 2023 01:22:00 +0300 Subject: upgpkg: httpx-bin 1.3.4-2 httpx-toolkit has been chosen to follow suit with kali linux: https://www.kali.org/tools/httpx-toolkit/ and to prevent binary name clash with: https://archlinux.org/packages/extra/any/python-httpx/ --- httpx-bin/.SRCINFO | 3 ++- httpx-bin/PKGBUILD | 5 +++-- httpx-bin/httpx-bin.install | 9 +++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 httpx-bin/httpx-bin.install (limited to 'httpx-bin') diff --git a/httpx-bin/.SRCINFO b/httpx-bin/.SRCINFO index c52e023..e3973ee 100644 --- a/httpx-bin/.SRCINFO +++ b/httpx-bin/.SRCINFO @@ -1,8 +1,9 @@ pkgbase = httpx-bin pkgdesc = Fast and multi-purpose HTTP toolkit pkgver = 1.3.4 - pkgrel = 1 + pkgrel = 2 url = https://github.com/projectdiscovery/httpx + install = httpx-bin.install arch = x86_64 arch = armv6h arch = aarch64 diff --git a/httpx-bin/PKGBUILD b/httpx-bin/PKGBUILD index 4d34433..dcdc5f7 100644 --- a/httpx-bin/PKGBUILD +++ b/httpx-bin/PKGBUILD @@ -4,7 +4,7 @@ _pkgname='httpx' pkgname="${_pkgname}-bin" pkgver=1.3.4 -pkgrel=1 +pkgrel=2 pkgdesc='Fast and multi-purpose HTTP toolkit' arch=('x86_64' 'armv6h' 'aarch64') url='https://github.com/projectdiscovery/httpx' @@ -12,6 +12,7 @@ license=('MIT') provides=("${_pkgname}") conflicts=("${_pkgname}") options=('!strip') +install="${pkgname}.install" source_x86_64=("${_pkgname}-${pkgver}-x86_64.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_amd64.zip") source_armv6h=("${_pkgname}-${pkgver}-armv6.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_arm.zip") @@ -22,7 +23,7 @@ sha256sums_armv6h=('864ea3a135661bb6e7092f40d97a66784d8877ae76237116f2fae7f2dd45 sha256sums_aarch64=('eb597578de681babd72f219a296b85cd6bc7e5bf9cafa4c24e9cc77947540058') package() { - install -Dvm755 "${_pkgname}" -t "${pkgdir}/usr/bin" + install -Dvm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}-toolkit" install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}" install -Dvm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" } diff --git a/httpx-bin/httpx-bin.install b/httpx-bin/httpx-bin.install new file mode 100644 index 0000000..0a0a1ef --- /dev/null +++ b/httpx-bin/httpx-bin.install @@ -0,0 +1,9 @@ +post_upgrade() { + cat <<- 'EOF' + +The httpx binary has been installed as httpx-toolkit +Please adjust your workflow accordingly +This has been done to prevent a name clash with: +https://archlinux.org/packages/extra/any/python-httpx/ +EOF +} -- cgit v1.2.3-70-g09d2