[arch-commits] Commit in python-secretstorage/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Aug 22 15:21:06 UTC 2018


    Date: Wednesday, August 22, 2018 @ 15:21:06
  Author: ffy00
Revision: 373266

revert split package

Modified:
  python-secretstorage/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++-----------------------------
 1 file changed, 8 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-22 15:17:16 UTC (rev 373265)
+++ PKGBUILD	2018-08-22 15:21:06 UTC (rev 373266)
@@ -4,46 +4,32 @@
 # Contributor: Patrice Peterson <runiq at archlinux dot us>
 # Contributor: JonnyJD <arch at JonnyJD.net>
 
-pkgbase=python-secretstorage
+pkgname=python-secretstorage
 _pkgname=SecretStorage
-pkgname=(python-secretstorage python2-secretstorage)
 pkgver=3.0.1
-pkgrel=4
+pkgrel=5
 pkgdesc="Securely store passwords and other private data using the SecretService DBus API"
 arch=('any')
 url="https://github.com/mitya57/secretstorage"
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('gnome-keyring' 'xorg-server-xvfb' 'python-cryptography' 'python-jeepney' 'python2-cryptography')
+makedepends=('python-setuptools' 'python-cryptography' 'python-jeepney')
+checkdepends=('gnome-keyring' 'xorg-server-xvfb')
 source=("https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
 sha512sums=('830f8de1a300d4a334ce7c2fa494ac1d8f1e36a8518f3df6df2b352ac3377bcdb84293b1c809b18bc774a61188b91f31fa30c15109b7aec180a2d1f522f2a165')
 
-prepare() {
-  cp -a $_pkgname-$pkgver{,-py2}
-}
+build() {
+  cd $_pkgname-$pkgver
 
-build() {
-  echo "Building python-secretstorage $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
   python setup.py build
-
-  echo "Building python2-secretstorage $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  echo "Running tests on python-secretstorage $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
-  dbus-launch xvfb-run -a python -m unittest discover -s tests || warning "Tests failed on python-secretstorage $pkgver"
+  cd $_pkgname-$pkgver
 
-  echo "Running tests on python2-secretstorage $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  dbus-launch xvfb-run -a python2 -m unittest discover -s tests || warning "Tests failed on python2-secretstorage $pkgver"
+  dbus-launch xvfb-run -a python -m unittest discover -s tests || warning "Tests failed"
 }
 
 package_python-secretstorage() {
-  depends=('python-cryptography' 'python-jeepney')
   cd $_pkgname-$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
@@ -50,10 +36,3 @@
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_python2-secretstorage() {
-  depends=('python2-cryptography')
-  cd $_pkgname-$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list