[arch-commits] Commit in python-gnupg/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Aug 27 15:34:44 UTC 2019


    Date: Tuesday, August 27, 2019 @ 15:34:44
  Author: dvzrv
Revision: 503298

archrelease: copy trunk to community-any

Added:
  python-gnupg/repos/community-any/PKGBUILD
    (from rev 503297, python-gnupg/trunk/PKGBUILD)
Deleted:
  python-gnupg/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 39 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-27 15:34:40 UTC (rev 503297)
+++ PKGBUILD	2019-08-27 15:34:44 UTC (rev 503298)
@@ -1,42 +0,0 @@
-# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-# Contributor: Sven Klomp <mail at klomp.eu>
-
-_pkgname=python-gnupg
-pkgbase=python-gnupg
-pkgname=('python-gnupg' 'python2-gnupg')
-pkgdesc="A Python wrapper for GnuPG"
-pkgver=0.4.4
-pkgrel=1
-url="https://pythonhosted.org/python-gnupg/"
-license=("BSD")
-arch=("any")
-makedepends=('python' 'python2')
-source=("https://pypi.io/packages/source/p/python-gnupg/${_pkgname}-${pkgver}.tar.gz"
-		"https://pypi.io/packages/source/p/python-gnupg/${_pkgname}-${pkgver}.tar.gz.asc")
-sha512sums=('d643447833248ed35c9837482f8ec7cce478b21374d4fd7ec444008433f85898f6ab0026b9c6dc0deb9730e98ec8edcfc5ed08359776a3220adf8f44f266b199'
-            'SKIP')
-validpgpkeys=('CA749061914EAC138E66EADB9147B477339A9B86') # Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk>
-
-prepare() {
-    # Create a copy for the python2 package
-    cp -r "${_pkgname}-${pkgver}" "python2-${_pkgname}-${pkgver}"
-}
-
-package_python-gnupg() {
-    pkgdesc="A Python 3 wrapper for GnuPG"
-    depends=('python' 'gnupg')
-
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    python setup.py install --root="${pkgdir}" --optimize=1
-    install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-gnupg() {
-    pkgdesc="A Python 2 wrapper for GnuPG"
-    depends=('python2' 'gnupg')
-
-    cd "${srcdir}/python2-${_pkgname}-${pkgver}"
-    python2 setup.py install --root="${pkgdir}" --optimize=1
-    install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-gnupg/repos/community-any/PKGBUILD (from rev 503297, python-gnupg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-27 15:34:44 UTC (rev 503298)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
+# Contributor: Sven Klomp <mail at klomp.eu>
+
+pkgname=python-gnupg
+pkgdesc="A wrapper for the Gnu Privacy Guard (GPG or GnuPG)"
+pkgver=0.4.5
+pkgrel=1
+url="https://pythonhosted.org/python-gnupg/"
+license=('BSD')
+arch=('any')
+depends=('gnupg' 'python')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/p/python-gnupg/${pkgname}-${pkgver}.tar.gz"
+        "https://pypi.io/packages/source/p/python-gnupg/${pkgname}-${pkgver}.tar.gz.asc")
+sha512sums=('441b49e1f87a7e8e3abf2d6e90f677dc33f1b66a36483787f972378127f31308bacc5e200ae254dd75942191d2fabd61ca5a2f200cf5400be70957942f889ca4'
+            'SKIP')
+validpgpkeys=('CA749061914EAC138E66EADB9147B477339A9B86') # Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk>
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export NO_EXTERNAL_TESTS='true'
+  python test_gnupg.py
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list