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

David Runge dvzrv at archlinux.org
Sat Oct 31 19:57:18 UTC 2020


    Date: Saturday, October 31, 2020 @ 19:57:18
  Author: dvzrv
Revision: 737914

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 38 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-31 19:57:03 UTC (rev 737913)
+++ PKGBUILD	2020-10-31 19:57:18 UTC (rev 737914)
@@ -1,36 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pynitrokey
-pkgname=python-pynitrokey
-pkgver=0.4.1
-pkgrel=1
-pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start"
-arch=('any')
-url="https://github.com/Nitrokey/pynitrokey/releases"
-license=('Apache')
-depends=('python-cbor' 'python-cffi' 'python-click' 'python-cryptography'
-'python-ecdsa' 'python-fido2' 'python-intelhex' 'python-pyserial'
-'python-pyusb' 'python-requests' 'python-pygments')
-makedepends=('python-dephell' 'python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('37084fca7281079bd211212f1b4ddae2c3262f100afa923991113f0d8fb3347fe566ec2c4d104f29e9d5440b1a52a9d862159b3f6fc23c6a5f6d47a3f24ac661')
-b2sums=('bc5e6244eda668b36767a759d4185cfaa86d9dc08943694ba77c12a546c468178ce63a83fabf0d995c7a0b3b0496c4711050adee3e162458c35005aa4ffd3e3e')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pynitrokey/repos/community-any/PKGBUILD (from rev 737913, python-pynitrokey/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-31 19:57:18 UTC (rev 737914)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pynitrokey
+pkgname=python-pynitrokey
+pkgver=0.4.1
+pkgrel=2
+pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start"
+arch=('any')
+url="https://github.com/Nitrokey/pynitrokey/releases"
+license=('Apache')
+depends=('python-cbor' 'python-cffi' 'python-click' 'python-cryptography'
+'python-ecdsa' 'python-fido2' 'python-intelhex' 'python-pyserial'
+'python-pyusb' 'python-requests' 'python-pygments')
+makedepends=('python-dephell' 'python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('37084fca7281079bd211212f1b4ddae2c3262f100afa923991113f0d8fb3347fe566ec2c4d104f29e9d5440b1a52a9d862159b3f6fc23c6a5f6d47a3f24ac661')
+b2sums=('bc5e6244eda668b36767a759d4185cfaa86d9dc08943694ba77c12a546c468178ce63a83fabf0d995c7a0b3b0496c4711050adee3e162458c35005aa4ffd3e3e')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 "${_name}/VERSION" "${pkgdir}/${_site_packages}/${_name}/"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list