Date: Tuesday, May 28, 2019 @ 20:25:27 Author: eschwartz Revision: 473057
addpkg: python-dephell-licenses 0.1.6-1 part of "dephell" tool Added: python-dephell-licenses/ python-dephell-licenses/repos/ python-dephell-licenses/trunk/ python-dephell-licenses/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: python-dephell-licenses/trunk/PKGBUILD =================================================================== --- python-dephell-licenses/trunk/PKGBUILD (rev 0) +++ python-dephell-licenses/trunk/PKGBUILD 2019-05-28 20:25:27 UTC (rev 473057) @@ -0,0 +1,42 @@ +# Maintainer: Eli Schwartz <[email protected]> + +_pkgname=dephell-licenses +pkgname=python-dephell-licenses +pkgver=0.1.6 +pkgrel=1 +pkgdesc="Manage OSS licenses: retrieve information, generate" +arch=('any') +url="https://github.com/dephell/${_pkgname}" +license=('MIT') +depends=('python-attrs' 'python-requests') +makedepends=('python-setuptools') +checkdepends=('python-pytest') +source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +sha256sums=('e190c8c2bd63a1524943c734ead82877591356585c9fb4f85f80e156b68ca999') +b2sums=('e04ecf71c05220e9b4891028fc7ef061debd3fdf7400366d26ab9bb4e2f4f3b271a150bb55e5073122f01c1223314fa0e57e60cdbe4361d257c5abfbd6d86e7c') + +prepare() { + cd "${srcdir}"/${_pkgname}-${pkgver} + + # pycache slipped into release tarballs + find . -name \*.pyc -delete +} + +build(){ + cd "${srcdir}"/${_pkgname}-${pkgver} + + python setup.py build +} + +check() { + cd "${srcdir}"/${_pkgname}-${pkgver} + + python -m pytest +} + +package() { + cd "${srcdir}"/${_pkgname}-${pkgver} + + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +}
