[arch-commits] Commit in python-lazr.delegates/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 20:13:42 UTC 2020
Date: Monday, November 9, 2020 @ 20:13:41
Author: foutrelis
Revision: 748165
archrelease: copy trunk to community-staging-any
Added:
python-lazr.delegates/repos/community-staging-any/
python-lazr.delegates/repos/community-staging-any/PKGBUILD
(from rev 748164, python-lazr.delegates/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-lazr.delegates/repos/community-staging-any/PKGBUILD (from rev 748164, python-lazr.delegates/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 20:13:41 UTC (rev 748165)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=lazr.delegates
+pkgname=python-lazr.delegates
+pkgver=2.0.4
+pkgrel=4
+pkgdesc="Easily write objects that delegate behavior"
+arch=('any')
+url="https://launchpad.net/lazr.delegates"
+license=('GPL')
+depends=('python-nose' 'python-setuptools' 'python-zope-interface')
+checkdepends=('python-pytest')
+provides=('python-lazr-delegates')
+replaces=('python-lazr-delegates')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('0c0b32a4fa4c132646d601870be0f0c1f1856aceb91bf979faa9a675fcbf94f76c7c6f548978a402842633cf4e53275c052cff7dfd776a4246691c067eabe501'
+ 'SKIP')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {HACKING,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list