41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'httpie'
|
|
pkgname=httpie
|
|
version=0.9.8
|
|
revision=1
|
|
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"
|
|
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}"
|
|
}
|