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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 02:27:11 UTC 2016


    Date: Sunday, December 25, 2016 @ 02:27:10
  Author: felixonmars
Revision: 201790

archrelease: copy trunk to community-staging-any

Added:
  httpbin/repos/community-staging-any/
  httpbin/repos/community-staging-any/PKGBUILD
    (from rev 201789, httpbin/trunk/PKGBUILD)

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

Copied: httpbin/repos/community-staging-any/PKGBUILD (from rev 201789, httpbin/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 02:27:10 UTC (rev 201790)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=httpbin
+pkgname=(httpbin python2-httpbin)
+pkgver=0.5.0
+pkgrel=2
+pkgdesc="HTTP Request and Response Service"
+arch=('any')
+url="https://github.com/Runscope/httpbin"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask'
+             'python-markupsafe' 'python2-markupsafe' 'python-itsdangerous' 'python2-itsdangerous'
+             'python-six' 'python2-six' 'python-decorator' 'python2-decorator' 'git')
+source=("git+https://github.com/Runscope/httpbin.git#tag=v$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+  cp -a httpbin{,-py2}
+}
+
+build() {
+  cd "$srcdir"/httpbin
+  LC_CTYPE=en_US.UTF-8 python setup.py build
+
+  cd "$srcdir"/httpbin-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/httpbin
+  python test_httpbin.py
+
+  cd "$srcdir"/httpbin-py2
+  python2 test_httpbin.py
+}
+
+package_httpbin() {
+  depends=('python-flask' 'python-markupsafe' 'python-itsdangerous' 'python-six' 'python-decorator')
+
+  cd httpbin
+  LC_CTYPE=en_US.UTF-8 python setup.py install -O1 --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-httpbin() {
+  depends=('python2-flask' 'python2-markupsafe' 'python2-itsdangerous' 'python2-six' 'python2-decorator')
+
+  cd httpbin-py2
+  python2 setup.py install -O1 --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list