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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 16:55:40 UTC 2020


    Date: Thursday, November 12, 2020 @ 16:55:40
  Author: felixonmars
Revision: 752097

archrelease: copy trunk to community-staging-any

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

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

Copied: httpie/repos/community-staging-any/PKGBUILD (from rev 752095, httpie/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 16:55:40 UTC (rev 752097)
@@ -0,0 +1,43 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: daurnimator <daurnimator at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>
+
+pkgname=httpie
+pkgver=2.3.0
+pkgrel=3
+pkgdesc="cURL for humans"
+url="https://github.com/jakubroztocil/httpie"
+depends=('python-requests'
+         'python-requests-toolbelt'
+         'python-pygments'
+         'python-pysocks'
+         '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=('f25005e2c1cf1c5031e26bc6a4d00820df8b77f5')
+
+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, include them in MANIFEST.in and use data_files in setup.py to install them automatically
+  # TODO: add zsh support
+  install -Dm644 extras/httpie-completion.bash "$pkgdir"/usr/share/bash-completion/completions/http
+  install -Dm644 extras/httpie-completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/http.fish
+}
+
+check() {
+  cd $pkgname-$pkgver
+  PYTHONDONTWRITEBYTECODE=1 python3 setup.py test
+}



More information about the arch-commits mailing list