Date: Thursday, November 12, 2020 @ 19:18:48 Author: foutrelis Revision: 753420
archrelease: copy trunk to community-staging-any Added: python-doit-py/repos/community-staging-any/PKGBUILD (from rev 753419, python-doit-py/trunk/PKGBUILD) Deleted: python-doit-py/repos/community-staging-any/PKGBUILD ----------+ PKGBUILD | 86 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-11-12 19:18:45 UTC (rev 753419) +++ PKGBUILD 2020-11-12 19:18:48 UTC (rev 753420) @@ -1,43 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=doit-py -pkgname=python-doit-py -pkgver=0.5.0 -pkgrel=2 -pkgdesc="doit tasks for python stuff" -arch=('any') -url="https://github.com/pydoit/doit-py" -license=('MIT') -depends=('python-configclass' 'python-doit') -makedepends=('python-setuptools') -checkdepends=('hunspell' 'hunspell-en_US' 'python-pyflakes' 'python-pytest') -# pypi sdist is missing tests: -# https://github.com/pydoit/doit-py/issues/4 -# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -source=("$pkgname-$pkgver.tar.gz::https://github.com/pydoit/${_name}/archive/${pkgver}.tar.gz") -sha512sums=('f9e70be30f47b7251bdb479762dabe655be898f9fe37fc5ac6608110a82863a08002271620569745f9ec2f47c03529c044a6ea74244b8bb6438b3fbe7e4c28f7') -b2sums=('092f21549d3c088baf8a96b8dd7575304d08c7ae7b0472e7a890159247422060af06c1cc14064cd608bd59e71788067c5374953b16f4511971bb3018c0245cd4') - -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 \ - --root="${pkgdir}" - install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -vDm 644 {CHANGES,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}" -} Copied: python-doit-py/repos/community-staging-any/PKGBUILD (from rev 753419, python-doit-py/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-11-12 19:18:48 UTC (rev 753420) @@ -0,0 +1,43 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=doit-py +pkgname=python-doit-py +pkgver=0.5.0 +pkgrel=3 +pkgdesc="doit tasks for python stuff" +arch=('any') +url="https://github.com/pydoit/doit-py" +license=('MIT') +depends=('python-configclass' 'python-doit') +makedepends=('python-setuptools') +checkdepends=('hunspell' 'hunspell-en_US' 'python-pyflakes' 'python-pytest') +# pypi sdist is missing tests: +# https://github.com/pydoit/doit-py/issues/4 +# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +source=("$pkgname-$pkgver.tar.gz::https://github.com/pydoit/${_name}/archive/${pkgver}.tar.gz") +sha512sums=('f9e70be30f47b7251bdb479762dabe655be898f9fe37fc5ac6608110a82863a08002271620569745f9ec2f47c03529c044a6ea74244b8bb6438b3fbe7e4c28f7') +b2sums=('092f21549d3c088baf8a96b8dd7575304d08c7ae7b0472e7a890159247422060af06c1cc14064cd608bd59e71788067c5374953b16f4511971bb3018c0245cd4') + +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 \ + --root="${pkgdir}" + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -vDm 644 {CHANGES,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}" +}