void-packages/srcpkgs/httpie/template

41 lines
1.1 KiB
Bash

# Template file for 'httpie'
pkgname=httpie
version=0.9.6
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://github.com/jakubroztocil/httpie"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/h/httpie/httpie-${version}.tar.gz"
checksum=a64b90f845544b654495fa9268431dfb74c14c3a855b52937517a70c812f90b1
alternatives="httpie:http:/usr/bin/http2"
post_install() {
vlicense LICENSE
}
python3-httpie_package() {
noarch=yes
pycompile_module="httpie"
replaces="python3.4-httpie>=0"
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
}
}
python3.4-httpie_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-httpie>=${version}_${revision}"
}