mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
pkgbase=python-keyring
|
|
pkgname=('python3-keyring' 'python2-keyring')
|
|
pkgver=10.2
|
|
pkgrel=1
|
|
pkgdesc="Store and access your passwords safely."
|
|
arch=('any')
|
|
url="http://pypi.python.org/pypi/keyring"
|
|
license=('PSF' 'MIT')
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'python3' 'python2')
|
|
optdepends=('kdeutils-kwallet: supports the KDE Kwallet service.')
|
|
source=("https://pypi.io/packages/source/k/keyring/keyring-$pkgver.tar.gz")
|
|
sha1sums=('24de60ada6d4ba286877bffad87619a1e51f5763')
|
|
|
|
prepare() {
|
|
cp -a keyring-$pkgver{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/keyring-$pkgver"
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/keyring-$pkgver-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-keyring() {
|
|
depends=('python3')
|
|
optdepends=('libgnome-keyring: Gnome integration'
|
|
'python3-gobject: Gnome integration'
|
|
'kdebindings-python3: Kde integration'
|
|
'python3-crypto: CLI keyring')
|
|
|
|
cd "$srcdir/keyring-$pkgver"
|
|
python3 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')
|
|
|
|
cd "$srcdir/keyring-$pkgver-py2"
|
|
python2 setup.py install --root=$pkgdir --optimize=1
|
|
|
|
mv "$pkgdir"/usr/bin/keyring{,2}
|
|
}
|