summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe5754a0ad8f07c7d598a1c89de38f542f871e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: mehalter <micah at mehalter.com>
# Maintainer: wenLiangcan <boxeed at gmail dot com>
# Maintainer: vinipsmaker <vini.ipsmaker@gmail.com>

pkgbase=http-prompt
pkgname=http-prompt
_module='http-prompt'
pkgver='1.0.0'
pkgrel=3
pkgdesc="An interactive HTTP command-line client"
url="https://github.com/eliangcs/http-prompt"
depends=('python'
         'python-click'
         'httpie'
         'python-prompt_toolkit1'
         'python-pygments'
         'python-six'
         'python-parsimonious'
         'python-pip'
         'python-pyaml')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/h/http-prompt/http-prompt-${pkgver}.tar.gz")
md5sums=('aee6b913be3190f66f8765281ce3d8f0')

prepare() {
    cd "${srcdir}/${_module}-${pkgver}"
    sed -e 's/prompt_toolkit/prompt_toolkit1/g' -i http_prompt/*.py
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1
    sed -e 's/prompt-toolkit/prompt-toolkit1/g' -i \
        "${pkgdir}/usr/lib/python3.9/site-packages/http_prompt-1.0.0-py3.9.egg-info/requires.txt"
}