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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:44:59 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:44:59
  Author: fyan
Revision: 140837

archrelease: copy trunk to community-staging-any

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

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

Copied: python-itsdangerous/repos/community-staging-any/PKGBUILD (from rev 140836, python-itsdangerous/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:44:59 UTC (rev 140837)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=('python-itsdangerous' 'python2-itsdangerous')
+pkgver=0.24
+pkgrel=2
+pkgdesc='Various helpers to pass trusted data to untrusted environments'
+arch=('any')
+url="http://pypi.python.org/pypi/itsdangerous"
+license=('BSD')
+makedepends=('python' 'python2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz")
+sha256sums=('b035b2da1d493b00a5ee7a5b750f96929de87b610643939fbe382902774626fc')
+
+prepare() {
+  cp -r "itsdangerous-$pkgver" "python-itsdangerous-$pkgver"
+  cp -r "itsdangerous-$pkgver" "python2-itsdangerous-$pkgver"
+}
+
+package_python-itsdangerous() {
+  cd "$pkgname-$pkgver"
+  depends+=('python')
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-itsdangerous() {
+  cd "$pkgname-$pkgver"
+  depends+=('python2')
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list