diff options
author | Filipe Nascimento | 2021-03-29 15:19:33 -0300 |
---|---|---|
committer | Filipe Nascimento | 2021-03-29 15:19:33 -0300 |
commit | 70e6b73d8b9d5bedd58dd46c01735d8b79ed9ead (patch) | |
tree | 12d7db861c79bcc2a8075bf0e1a4cd51094edfba /PKGBUILD | |
parent | e681b66ffafa9cd6e08326da241b684bb27148aa (diff) | |
download | aur-70e6b73d8b9d5bedd58dd46c01735d8b79ed9ead.tar.gz |
upgpkg: kb 0.1.6-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -1,26 +1,32 @@ # Maintainer: Giuseppe Nebbione <giuseppenebbione at gmail dot com> +# Maintainer: Filipe Nascimento <flipee at tuta dot io> -pkgbase='kb' -pkgname=('kb') -_module='kb-manager' -pkgver='0.1.6' -pkgrel=1 +pkgname=kb +_module=kb-manager +pkgver=0.1.6 +pkgrel=2 pkgdesc="A command line minimalist knowledge base manager" +arch=('any') url="https://github.com/gnebbia/kb" -depends=('python') -makedepends=('python-setuptools') license=('GPL3') -arch=('any') +depends=('python-attrs' 'python-colored' 'python-gitpython' 'python-setuptools' 'python-toml') +checkdepends=('python-pytest-cov') +conflicts=("python-kb") +replaces=("python-kb") source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz") sha256sums=('55e3d8fd160ce1c71e3acaaf1bc14603fcb5dd055fc7eb62521d3f3737749b1d') build() { - cd "${srcdir}/${_module}-${pkgver}" + cd ${_module}-${pkgver} python setup.py build } +check() { + cd ${_module}-${pkgver} + pytest -v +} + package() { - depends+=() - cd "${srcdir}/${_module}-${pkgver}" + cd ${_module}-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build } |