diff options
Diffstat (limited to 'abs/core/python_modules/python-itsdangerous/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-itsdangerous/PKGBUILD | 37 |
1 files changed, 37 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: |