wok-current view httpie/receipt @ rev 24145

ventoy: set arch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 17 10:14:59 2021 +0000 (2021-11-17)
parents 4484d051fe78
children 241fb98cab1c
line source
1 # SliTaz package receipt.
3 PACKAGE="httpie"
4 VERSION="2.0.0"
5 CATEGORY="network"
6 SHORT_DESC="A command line HTTP client, a user-friendly cURL replacement."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://httpie.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jakubroztocil/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="python-pygments python-requests"
15 BUILD_DEPENDS="python-setuptools"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --no-compile --root=$install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }