Date: Tuesday, November 22, 2016 @ 11:58:40 Author: felixonmars Revision: 196522
upgpkg: python-update-checker 0.13-1 Modified: python-update-checker/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-11-22 11:32:26 UTC (rev 196521) +++ PKGBUILD 2016-11-22 11:58:40 UTC (rev 196522) @@ -1,8 +1,8 @@ # $Id$ # Maintainer: Felix Yan <felixonm...@gmail.com> -pkgbase=python-update_checker -pkgname=('python-update_checker' 'python2-update_checker') +pkgbase=python-update-checker +pkgname=('python-update-checker' 'python2-update-checker') pkgver=0.13 pkgrel=1 pkgdesc="A python module that will check for package updates" @@ -18,23 +18,26 @@ } build() { - cd "$srcdir/update_checker-$pkgver" + cd "$srcdir"/update_checker-$pkgver python setup.py build - cd "$srcdir/update_checker-$pkgver-py2" + cd "$srcdir"/update_checker-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir/update_checker-$pkgver" + cd "$srcdir"/update_checker-$pkgver python setup.py test - cd "$srcdir/update_checker-$pkgver-py2" + cd "$srcdir"/update_checker-$pkgver-py2 python2 setup.py test } -package_python-update_checker() { +package_python-update-checker() { depends=('python-requests') + provides=('python-update_checker') + conflicts=('python-update_checker') + replaces=('python-update_checker') cd update_checker-$pkgver python setup.py install --root="$pkgdir" --optimize=1 @@ -41,8 +44,11 @@ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt } -package_python2-update_checker() { +package_python2-update-checker() { depends=('python2-requests') + provides=('python2-update_checker') + conflicts=('python2-update_checker') + replaces=('python2-update_checker') cd update_checker-$pkgver-py2 python2 setup.py install --root="$pkgdir" --optimize=1