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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:11:20 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:11:20
  Author: fyan
Revision: 140805

archrelease: copy trunk to community-staging-any

Added:
  python-werkzeug/repos/community-staging-any/
  python-werkzeug/repos/community-staging-any/PKGBUILD
    (from rev 140804, python-werkzeug/trunk/PKGBUILD)

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

Copied: python-werkzeug/repos/community-staging-any/PKGBUILD (from rev 140804, python-werkzeug/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:11:20 UTC (rev 140805)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Dan Serban
+# Contributor: Richard Murri
+
+pkgname=('python-werkzeug' 'python2-werkzeug')
+pkgver=0.10.4
+pkgrel=2
+pkgdesc='Swiss Army knife of Python web development'
+url='http://werkzeug.pocoo.org/'
+arch=('any')
+license=('custom:BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pytest' 'python2-pytest' 'python-requests' 'python2-requests')
+source=("http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-$pkgver.tar.gz")
+sha256sums=('9d2771e4c89be127bc4bac056ab7ceaf0e0064c723d6b6e195739c3af4fd5c1d')
+
+prepare() {
+  cp -r "Werkzeug-$pkgver" "python-werkzeug-$pkgver"
+  cp -r "Werkzeug-$pkgver" "python2-werkzeug-$pkgver"
+}
+
+build_python-werkzeug() {
+  cd "$pkgname-$pkgver"
+
+  python setup.py build
+}
+
+build_python2-werkzeug() {
+  cd "$pkgname-$pkgver"
+
+  python2 setup.py build
+}
+
+#check() {
+#  cd "python-werkzeug-$pkgver"
+#  python setup.py test
+#
+#  cd "python-werkzeug-$pkgver"
+#  p3ython2 setup.py test
+#}
+
+package_python-werkzeug() {
+  depends+=('python')
+  cd "$pkgname-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-werkzeug() {
+  depends+=('python2')
+  cd "$pkgname-$pkgver"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: https://github.com/mitsuhiko/werkzeug
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list