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

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Dec 20 05:30:37 UTC 2020


    Date: Sunday, December 20, 2020 @ 05:30:36
  Author: svenstaro
Revision: 780148

archrelease: copy trunk to community-any

Added:
  python-proxmoxer/repos/community-any/
  python-proxmoxer/repos/community-any/PKGBUILD
    (from rev 780147, python-proxmoxer/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-proxmoxer/repos/community-any/PKGBUILD (from rev 780147, python-proxmoxer/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-12-20 05:30:36 UTC (rev 780148)
@@ -0,0 +1,31 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Bao Trinh <qubidt at gmail>
+# Contributor: Bastien Traverse <firstname at lastname dot email>
+
+pkgname=python-proxmoxer
+_name=${pkgname#python-}
+pkgver=1.1.1
+pkgrel=3
+pkgdesc="Python Wrapper for the Proxmox 2.x API (HTTP and SSH)"
+arch=('any')
+url="https://github.com/proxmoxer/proxmoxer"
+license=('MIT')
+depends=('python')
+optdepends=('python-requests: for https backend'
+			'python-paramiko: for ssh_paramiko backend')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('684a69190129da0f102703fc9861f5eea82a7d804f9f96d35c7fd73452f1da7e')
+
+build() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  # remove tests because they interfere with other system packages
+  sed -i "s/, 'tests', 'tests.base'//" setup.py
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list