Date: Friday, January 10, 2020 @ 23:05:54 Author: dvzrv Revision: 551824
archrelease: copy trunk to community-any Added: python-lazr.delegates/repos/community-any/ python-lazr.delegates/repos/community-any/PKGBUILD (from rev 551823, python-lazr.delegates/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: python-lazr.delegates/repos/community-any/PKGBUILD (from rev 551823, python-lazr.delegates/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2020-01-10 23:05:54 UTC (rev 551824) @@ -0,0 +1,43 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=lazr.delegates +pkgname=python-lazr.delegates +pkgver=2.0.4 +pkgrel=2 +pkgdesc="Easily write objects that delegate behavior" +arch=('any') +url="https://launchpad.net/lazr.delegates" +license=('GPL') +depends=('python-zope-interface') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-nose') +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}" +}