mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
31 lines
966 B
Bash
31 lines
966 B
Bash
pkgbase=python-gnupg
|
|
pkgname=('python2-gnupg' 'python3-gnupg')
|
|
pkgver=0.4.1
|
|
pkgrel=1
|
|
pkgdesc="This module allows easy access to GnuPG's key management, encryption and signature functionality from Python programs."
|
|
url="https://pypi.python.org/pypi/python-gnupg"
|
|
license=("BSD")
|
|
arch=("any")
|
|
depends=('gnupg')
|
|
makedepends=('python2' 'python3')
|
|
source=("https://pypi.io/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
|
|
md5sums=('b5d98344798b3cbb80cdcc1bfd788ea3')
|
|
|
|
package_python2-gnupg() {
|
|
depends+=('python2')
|
|
|
|
cd $srcdir/${pkgbase}-${pkgver}
|
|
python2 setup.py build
|
|
python2 setup.py install --prefix="${pkgdir}/usr"
|
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
package_python3-gnupg() {
|
|
depends+=('python3')
|
|
|
|
cd $srcdir/${pkgbase}-${pkgver}/
|
|
python3 setup.py build
|
|
python3 setup.py install --prefix="${pkgdir}/usr"
|
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|