[arch-commits] Commit in python-itsdangerous/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:05:46 UTC 2019
Date: Friday, October 25, 2019 @ 16:05:45
Author: foutrelis
Revision: 519365
archrelease: copy trunk to community-staging-any
Added:
python-itsdangerous/repos/community-staging-any/
python-itsdangerous/repos/community-staging-any/PKGBUILD
(from rev 519364, python-itsdangerous/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-itsdangerous/repos/community-staging-any/PKGBUILD (from rev 519364, python-itsdangerous/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:05:45 UTC (rev 519365)
@@ -0,0 +1,36 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=('python-itsdangerous' 'python2-itsdangerous')
+pkgver=1.1.0
+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' 'python-setuptools' 'python2-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz")
+sha256sums=('2fbc62987b9f7aa646083326e5746ab5d791628e63575851a8ce5d5d5e8754b9')
+
+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.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
+
+package_python2-itsdangerous() {
+ cd "$pkgname-$pkgver"
+ depends+=('python2')
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list