# $Id: PKGBUILD 142355 2015-10-01 16:02:46Z fyan $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>

pkgname=httpie
pkgver=0.9.2
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=('8c5a7820c3f5221f30e9a70073efda3c')

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

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