summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 02:59:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 02:59:13 (GMT)
commit5f7cd18e06554a20533f1dee8012ab22da304dd6 (patch)
tree9908300ed996a0f265d2c454011fa65f1bfd5f58
parent5beff0559e9d9be5004dd541541f0f881351b11d (diff)
downloadlinhes_pkgbuild-5f7cd18e06554a20533f1dee8012ab22da304dd6.zip
linhes_pkgbuild-5f7cd18e06554a20533f1dee8012ab22da304dd6.tar.gz
linhes_pkgbuild-5f7cd18e06554a20533f1dee8012ab22da304dd6.tar.bz2
python-itsdangerous: initial inclusion. dep of flexget
-rw-r--r--abs/core/python_modules/python-itsdangerous/PKGBUILD37
-rw-r--r--abs/core/python_modules/python-itsdangerous/__changelog1
2 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-itsdangerous/PKGBUILD b/abs/core/python_modules/python-itsdangerous/PKGBUILD
new file mode 100644
index 0000000..4b643d8
--- /dev/null
+++ b/abs/core/python_modules/python-itsdangerous/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+
+pkgname=('python2-itsdangerous')
+pkgver=0.24
+pkgrel=3
+pkgdesc='Various helpers to pass trusted data to untrusted environments'
+arch=('any')
+url="http://pypi.python.org/pypi/itsdangerous"
+license=('BSD')
+makedepends=('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:
diff --git a/abs/core/python_modules/python-itsdangerous/__changelog b/abs/core/python_modules/python-itsdangerous/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-itsdangerous/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff