| author | Felix Yan
<felixonmars@archlinux.org> 2018-05-11 11:42:12 UTC |
| committer | Felix Yan
<felixonmars@archlinux.org> 2018-05-11 11:42:12 UTC |
| parent | 7ac3b74ef5e2ab72c1a6899ca0de3d4162d36635 |
| PKGBUILD | +6 | -20 |
diff --git a/PKGBUILD b/PKGBUILD index 5ce1d30..f5d80da 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,18 +2,17 @@ # Contributor: Patrice Peterson <runiq at archlinux dot us> # Contributor: JonnyJD <arch@JonnyJD.net> -pkgbase=python-secretstorage -pkgname=(python-secretstorage python2-secretstorage) -pkgver=2.3.1 -pkgrel=3 +pkgname=python-secretstorage +pkgver=3.0.1 +pkgrel=1 pkgdesc="Securely store passwords and other private data using the SecretService DBus API" arch=('any') url="https://pypi.python.org/pypi/SecretStorage" license=('BSD') -makedepends=('python-dbus' 'python2-dbus' 'dbus-glib' 'python-cryptography' 'python2-cryptography') +depends=('python-cryptography' 'python-jeepney') checkdepends=('gnome-keyring' 'xorg-server-xvfb') source=("https://pypi.io/packages/source/S/SecretStorage/SecretStorage-${pkgver}.tar.gz") -md5sums=('3b9465831b069e2622973afb7deb7bc2') +sha512sums=('830f8de1a300d4a334ce7c2fa494ac1d8f1e36a8518f3df6df2b352ac3377bcdb84293b1c809b18bc774a61188b91f31fa30c15109b7aec180a2d1f522f2a165') prepare() { cp -a SecretStorage-$pkgver{,-py2} @@ -22,23 +21,10 @@ prepare() { check() { cd SecretStorage-$pkgver dbus-launch xvfb-run -a python -m unittest discover -s tests || warning "Tests failed" - - cd ../SecretStorage-$pkgver-py2 - dbus-launch xvfb-run -a python2 -m unittest discover -s tests || warning "Tests failed" } -package_python-secretstorage() { - depends=('python-dbus' 'dbus-glib' 'python-cryptography') - +package() { cd SecretStorage-$pkgver python setup.py install -O1 --root="$pkgdir" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -package_python2-secretstorage() { - depends=('python2-dbus' 'dbus-glib' 'python2-cryptography') - - cd SecretStorage-$pkgver-py2 - python2 setup.py install -O1 --root="$pkgdir" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -}