[arch-commits] Commit in httpie/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 08:35:13 UTC 2019


    Date: Monday, November 4, 2019 @ 08:35:12
  Author: foutrelis
Revision: 523776

archrelease: copy trunk to community-staging-any

Added:
  httpie/repos/community-staging-any/
  httpie/repos/community-staging-any/PKGBUILD
    (from rev 523775, httpie/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: httpie/repos/community-staging-any/PKGBUILD (from rev 523775, httpie/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 08:35:12 UTC (rev 523776)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>
+
+pkgname=httpie
+pkgver=1.0.3
+pkgrel=2
+pkgdesc="cURL for humans"
+url="https://github.com/jakubroztocil/httpie"
+depends=('python-requests' 'python-pygments' 'python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-httpbin' 'python-mock')
+conflicts=(python-httpie)
+replaces=(python-httpie python2-httpie)
+license=('BSD')
+arch=('any')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/jakubroztocil/httpie/archive/$pkgver.tar.gz")
+sha1sums=('f765ce527a0fae0d1dd76c25b78e6e61651ea4ca')
+
+build() {
+  cd $pkgname-$pkgver
+  python3 setup.py build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/httpie/LICENSE"
+  python3 setup.py install --root="$pkgdir" --optimize=1
+
+  # Fix upstream, inclide them in MANIFEST.in and use data_files in setup.py to install them automatically
+  # TODO: add zsh support
+  install -d $pkgdir/usr/share/bash-completion/completions
+  install -Dm644 extras/httpie-completion.bash $pkgdir/usr/share/bash-completion/completions/http
+}
+
+check() {
+  cd $pkgname-$pkgver
+  python3 setup.py test
+}



More information about the arch-commits mailing list