Date: Thursday, March 28, 2019 @ 23:14:18 Author: maximbaz Revision: 445652
py3status: i3status and i3blocks to optdepends, run tests Modified: py3status/trunk/PKGBUILD ----------+ PKGBUILD | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-03-28 22:56:56 UTC (rev 445651) +++ PKGBUILD 2019-03-28 23:14:18 UTC (rev 445652) @@ -5,13 +5,16 @@ pkgname=py3status pkgver=3.17 -pkgrel=1 +pkgrel=2 pkgdesc="An extensible i3status replacement/wrapper written in python" url="https://www.ultrabug.fr/tag/py3status/" arch=('any') license=('BSD') -depends=('python' 'python-setuptools' 'i3status') -optdepends=('python-pyudev: for udev event monitoring' +depends=('python' 'python-setuptools') +checkdepends=('python-pytest-runner') +optdepends=('i3status: for i3status modules' + 'i3blocks: for i3blocks modules' + 'python-pyudev: for udev event monitoring' 'python-pydbus: for modules that rely on D-Bus' 'python-tzlocal: for modules that need time zone info' 'pacman-contrib: for the arch_updates module') @@ -19,14 +22,19 @@ sha256sums=('9df40f9d27ec6a2b592b9d85aa37894666c979ab2ee89ea0ef3229100d4ccaac') build() { - cd "$pkgname-$pkgver" - python setup.py build + cd "$pkgname-$pkgver" + python setup.py build } +check() { + cd "$pkgname-$pkgver" + python setup.py pytest +} + package() { - cd "$pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -d "$pkgdir/usr/share/doc/$pkgname" - install -m644 doc/* README.rst CHANGELOG "$pkgdir/usr/share/doc/$pkgname" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -d "$pkgdir/usr/share/doc/$pkgname" + install -m644 doc/* README.rst CHANGELOG "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }