[arch-commits] Commit in (5 files)
Felix Yan
fyan at archlinux.org
Mon Sep 8 15:07:36 UTC 2014
Date: Monday, September 8, 2014 @ 17:07:35
Author: fyan
Revision: 118669
addpkg: python-keyring 4.0-2
Added:
python-keyring/
python-keyring/repos/
python-keyring/repos/community-any/
python-keyring/trunk/
python-keyring/trunk/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
Added: python-keyring/trunk/PKGBUILD
===================================================================
--- python-keyring/trunk/PKGBUILD (rev 0)
+++ python-keyring/trunk/PKGBUILD 2014-09-08 15:07:35 UTC (rev 118669)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Johannes Dewender arch at JonnyJD dot net
+# Contributor: Ivan Sichmann Freitas <ivansichfreitas at gmail.com>
+# Contributor: Brice Maron <brice at bmaron.net>
+# Contributor: Nuno Araujo <nuno.araujo at russo79.com>
+# Contributor: Steven Allen <steven {at} stebalien {dot} com>
+
+pkgbase=python-keyring
+pkgname=('python-keyring' 'python2-keyring')
+pkgver=4.0
+pkgrel=2
+pkgdesc="Store and access your passwords safely."
+arch=('any')
+url="http://pypi.python.org/pypi/keyring"
+license=('PSF' 'MIT')
+source=("http://pypi.python.org/packages/source/k/keyring/keyring-$pkgver.zip")
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock' 'python-crypto' 'python2-crypto'
+ 'python-secretstorage' 'python2-secretstorage' 'python-gobject' 'python2-gobject' 'libgnome-keyring'
+ 'kdebindings-python' 'kdebindings-python2' 'python2-gdata')
+md5sums=('4d1055abcac582f11cb0941cf22ab4d0')
+
+prepare() {
+ cp -a keyring-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/keyring-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/keyring-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/keyring-$pkgver"
+ py.test
+
+ cd "$srcdir/keyring-$pkgver-py2"
+ py.test2
+}
+
+package_python-keyring() {
+ depends=('python')
+ optdepends=('libgnome-keyring: Gnome integration'
+ 'python-gobject: Gnome integration'
+ 'kdebindings-python: Kde integration'
+ 'python-crypto: CLI keyring'
+ 'python-secretstorage: SecretService DBus API (GNOME/KDE)')
+
+ cd "$srcdir/keyring-$pkgver"
+ python setup.py install --root=$pkgdir --optimize=1
+}
+
+package_python2-keyring() {
+ depends=('python2')
+ optdepends=('libgnome-keyring: Gnome integration'
+ 'python2-gobject: Gnome integration'
+ 'kdebindings-python2: Kde integration'
+ 'python2-crypto: CLI keyring'
+ 'python2-secretstorage: SecretService DBus API (GNOME/KDE)')
+
+ cd "$srcdir/keyring-$pkgver-py2"
+ python2 setup.py install --root=$pkgdir --optimize=1
+
+ mv "$pkgdir"/usr/bin/keyring{,2}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list