# $Id: PKGBUILD 108406 2014-03-27 14:47:16Z fyan $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>

pkgname=httpie
pkgver=0.8.0
pkgrel=2
pkgdesc="cURL for humans"
url="https://github.com/jkbr/httpie"
depends=('python-requests' 'python-pygments')
makedepends=('python-setuptools')
conflicts=(python-httpie)
replaces=(python-httpie python2-httpie)
license=('BSD')
arch=('any')
source=("http://pypi.python.org/packages/source/h/httpie/httpie-$pkgver.tar.gz")
md5sums=('d78b17be565886f018bff05d6a292a75')

build() {
    cd "$srcdir/httpie-$pkgver"
    python3 setup.py build
}

package() {
    cd "$srcdir/httpie-$pkgver"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/httpie/LICENSE"
    python3 setup.py install --root="$pkgdir" --optimize=1
}
