# $Id: PKGBUILD 95601 2013-08-14 23:21:50Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>

pkgname=httpie
pkgver=0.6.0
pkgrel=2
pkgdesc="cURL for humans"
url="https://github.com/jkbr/httpie"
depends=('python-requests' 'python-pygments')
makedepends=('python-distribute')
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=('441b750a527ba8dcec08a275cd97eab9')

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
}
