Date: Saturday, December 2, 2017 @ 19:00:21 Author: jlichtblau Revision: 271911
upgpkg: python-daemon 2.1.2-3 - FS#54400 fix Modified: python-daemon/trunk/PKGBUILD ----------+ PKGBUILD | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-02 19:00:18 UTC (rev 271910) +++ PKGBUILD 2017-12-02 19:00:21 UTC (rev 271911) @@ -1,21 +1,22 @@ # $Id$ -# Maintainer: Anatol Pomozov +# Maintainer: Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Contributor: Anatol Pomozov # Contributor: Massimiliano Torromeo <massimiliano.torro...@gmail.com> pkgbase=python-daemon -pkgname=(python-daemon python2-daemon) +pkgname=('python-daemon' 'python2-daemon') pkgver=2.1.2 -pkgrel=2 +pkgrel=3 pkgdesc='Library to implement a well-behaved Unix daemon process' -arch=(any) +arch=('any') url='https://pypi.python.org/pypi/python-daemon' -license=(Apache) -makedepends=(python-setuptools python2-setuptools python-docutils python2-docutils python-lockfile python2-lockfile) -checkdepends=(python-mock python2-mock python-testscenarios python2-testscenarios) +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools' 'python-docutils' 'python2-docutils' 'python-lockfile' 'python2-lockfile') +checkdepends=('python-mock' 'python2-mock' 'python-testscenarios' 'python2-testscenarios') source=(https://pypi.python.org/packages/b2/fb/a280d65f81e9d69989c8d6c4e0bb18d7280cdcd6d406a2cc3f4eb47d4402/$pkgbase-$pkgver.tar.gz{,.asc}) validpgpkeys=('517CF14BB2F398B0CB354855B8B24C06AC128405') # Ben Finney -sha1sums=('e333e9031424611b8974d2b2d2804dd26c4fae8e' - 'SKIP') +sha256sums=('261c859be5c12ae7d4286dc6951e87e9e1a70a882a8b41fd926efc1ec4214f73' + 'SKIP') prepare() { cp -a python-daemon-$pkgver{,-py2} @@ -22,36 +23,38 @@ } build() { - cd "$srcdir/python-daemon-$pkgver" + cd "${srcdir}"/python-daemon-$pkgver python setup.py build - cd "$srcdir/python-daemon-$pkgver-py2" + cd "${srcdir}"/python-daemon-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir/python-daemon-$pkgver" + cd "${srcdir}"/python-daemon-$pkgver # test fails -# python setup.py test +# python setup.py test - cd "$srcdir/python-daemon-$pkgver-py2" + cd "${srcdir}"/python-daemon-$pkgver-py2 python2 setup.py test } package_python-daemon() { - depends=(python python-lockfile) + depends=('python' 'python-lockfile' 'python-docutils') - cd "$srcdir/python-daemon-$pkgver" + cd "${srcdir}"/python-daemon-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE.ASF-2 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.ASF-2" - install -Dm644 LICENSE.GPL-3 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.GPL-3" + install -Dm644 LICENSE.ASF-2 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.ASF-2 + install -Dm644 LICENSE.GPL-3 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.GPL-3 } package_python2-daemon() { - depends=(python2 python2-lockfile) + depends=('python2' 'python2-lockfile' 'python2-docutils') - cd "$srcdir/python-daemon-$pkgver-py2" - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE.ASF-2 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.ASF-2" - install -Dm644 LICENSE.GPL-3 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.GPL-3" + cd "${srcdir}"/python-daemon-$pkgver-py2 + + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -Dm644 LICENSE.ASF-2 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.ASF-2 + install -Dm644 LICENSE.GPL-3 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.GPL-3 }