summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfc7ee469169e52cccf2e0f0ad07c798f186c0a3 (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='2.1.0'
pkgrel=1
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=('e483bea0b0da9677c3bc6466fa9a2921')

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-${pkgver}-py3.9.egg-info/requires.txt"
}