void-packages/srcpkgs/httpie/template

35 lines
999 B
Bash

# Template file for 'httpie'
pkgname=httpie
version=0.9.8
revision=2
noarch=yes
build_style=python-module
pycompile_module="httpie"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-requests python-Pygments"
short_desc="Human-friendly command line HTTP client (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://httpie.org/"
license="3-clause-BSD"
# distfiles="${PYPI_SITE}/h/httpie/httpie-${version}.tar.gz"
distfiles="https://github.com/jkbrzt/httpie/archive/${version}.tar.gz"
checksum=5ccc65dd8e60a9310f575c1a9600f3cc7daf8704cc88bf6c40118b3659b98dc7
alternatives="httpie:http:/usr/bin/http2"
post_install() {
vlicense LICENSE
}
python3-httpie_package() {
noarch=yes
pycompile_module="httpie"
depends="python3-setuptools python3-requests python3-Pygments"
short_desc="${short_desc/Python2/Python3}"
alternatives="httpie:http:/usr/bin/http3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}