diff options
author | Yigit Sever | 2023-09-04 01:22:00 +0300 |
---|---|---|
committer | Yigit Sever | 2023-09-04 01:23:53 +0300 |
commit | 59b8bb0d30d416b158fd1c78bf33292754c76caa (patch) | |
tree | 10fd3898d89e30e62742dfc6fcd302f8b5f471c6 /httpx-bin | |
parent | 83d3e7f5777867e0a463c2f99a991381f7e1019f (diff) | |
download | packages-59b8bb0d30d416b158fd1c78bf33292754c76caa.tar.gz packages-59b8bb0d30d416b158fd1c78bf33292754c76caa.tar.bz2 packages-59b8bb0d30d416b158fd1c78bf33292754c76caa.zip |
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/
Diffstat (limited to 'httpx-bin')
-rw-r--r-- | httpx-bin/.SRCINFO | 3 | ||||
-rw-r--r-- | httpx-bin/PKGBUILD | 5 | ||||
-rw-r--r-- | httpx-bin/httpx-bin.install | 9 |
3 files changed, 14 insertions, 3 deletions
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 @@ | |||
1 | pkgbase = httpx-bin | 1 | pkgbase = httpx-bin |
2 | pkgdesc = Fast and multi-purpose HTTP toolkit | 2 | pkgdesc = Fast and multi-purpose HTTP toolkit |
3 | pkgver = 1.3.4 | 3 | pkgver = 1.3.4 |
4 | pkgrel = 1 | 4 | pkgrel = 2 |
5 | url = https://github.com/projectdiscovery/httpx | 5 | url = https://github.com/projectdiscovery/httpx |
6 | install = httpx-bin.install | ||
6 | arch = x86_64 | 7 | arch = x86_64 |
7 | arch = armv6h | 8 | arch = armv6h |
8 | arch = aarch64 | 9 | 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 @@ | |||
4 | _pkgname='httpx' | 4 | _pkgname='httpx' |
5 | pkgname="${_pkgname}-bin" | 5 | pkgname="${_pkgname}-bin" |
6 | pkgver=1.3.4 | 6 | pkgver=1.3.4 |
7 | pkgrel=1 | 7 | pkgrel=2 |
8 | pkgdesc='Fast and multi-purpose HTTP toolkit' | 8 | pkgdesc='Fast and multi-purpose HTTP toolkit' |
9 | arch=('x86_64' 'armv6h' 'aarch64') | 9 | arch=('x86_64' 'armv6h' 'aarch64') |
10 | url='https://github.com/projectdiscovery/httpx' | 10 | url='https://github.com/projectdiscovery/httpx' |
@@ -12,6 +12,7 @@ license=('MIT') | |||
12 | provides=("${_pkgname}") | 12 | provides=("${_pkgname}") |
13 | conflicts=("${_pkgname}") | 13 | conflicts=("${_pkgname}") |
14 | options=('!strip') | 14 | options=('!strip') |
15 | install="${pkgname}.install" | ||
15 | 16 | ||
16 | source_x86_64=("${_pkgname}-${pkgver}-x86_64.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_amd64.zip") | 17 | source_x86_64=("${_pkgname}-${pkgver}-x86_64.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_amd64.zip") |
17 | source_armv6h=("${_pkgname}-${pkgver}-armv6.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_arm.zip") | 18 | source_armv6h=("${_pkgname}-${pkgver}-armv6.zip::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_arm.zip") |
@@ -22,7 +23,7 @@ sha256sums_armv6h=('864ea3a135661bb6e7092f40d97a66784d8877ae76237116f2fae7f2dd45 | |||
22 | sha256sums_aarch64=('eb597578de681babd72f219a296b85cd6bc7e5bf9cafa4c24e9cc77947540058') | 23 | sha256sums_aarch64=('eb597578de681babd72f219a296b85cd6bc7e5bf9cafa4c24e9cc77947540058') |
23 | 24 | ||
24 | package() { | 25 | package() { |
25 | install -Dvm755 "${_pkgname}" -t "${pkgdir}/usr/bin" | 26 | install -Dvm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}-toolkit" |
26 | install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}" | 27 | install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}" |
27 | install -Dvm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" | 28 | install -Dvm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" |
28 | } | 29 | } |
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 @@ | |||
1 | post_upgrade() { | ||
2 | cat <<- 'EOF' | ||
3 | |||
4 | The httpx binary has been installed as httpx-toolkit | ||
5 | Please adjust your workflow accordingly | ||
6 | This has been done to prevent a name clash with: | ||
7 | https://archlinux.org/packages/extra/any/python-httpx/ | ||
8 | EOF | ||
9 | } | ||