Date: Wednesday, August 28, 2019 @ 00:45:26 Author: felixonmars Revision: 503336
upgpkg: python-fs 2.4.10-1 Modified: python-fs/trunk/PKGBUILD ----------+ PKGBUILD | 52 +++++++++++----------------------------------------- 1 file changed, 11 insertions(+), 41 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-08-28 00:43:58 UTC (rev 503335) +++ PKGBUILD 2019-08-28 00:45:26 UTC (rev 503336) @@ -1,61 +1,31 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> -pkgbase=python-fs -pkgname=('python-fs' 'python2-fs') -pkgver=2.4.8 +pkgname=python-fs +pkgver=2.4.10 pkgrel=1 pkgdesc="Filesystem abstraction layer" arch=('any') license=('BSD') url="https://pypi.python.org/pypi/fs/" -makedepends=('python-appdirs' 'python2-appdirs' 'python2-enum34' 'python-pytz' 'python2-pytz' - 'python2-scandir' 'python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' - 'python2-typing' 'python2-backports.os') -checkdepends=('python-nose' 'python2-nose' 'fuse2' 'python-mock' 'python2-mock' 'python-pyftpdlib' - 'python2-pyftpdlib' 'python-psutil' 'python2-psutil' 'python-pysendfile' - 'python2-pysendfile') +depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six') +checkdepends=('python-nose' 'fuse2' 'python-mock' 'python-pyftpdlib' 'python-psutil' + 'python-pysendfile') source=("$pkgname-$pkgver.tar.gz::https://github.com/PyFilesystem/pyfilesystem2/archive/v$pkgver.tar.gz") -sha512sums=('c079f89033ec0a8afc494b65106803d2f992397bd4df24c95e75b46c584322b2f69863c43038f3ac9adb4d18ef6d687653f8de1d40bf4c1431accd899f966c66') +sha512sums=('ebb252e6c7f67fcce4fe1c98405e4c2892860d68e1b015d44b9ba62ae33445fbe7050270762ef19035bceb9fd0881aefe709e75ec1b5169a8aeb5c23b960036c') -prepare() { - cp -a pyfilesystem2-$pkgver{,-py2} - - sed -e '/enum34/d' -e '/scandir/d' -i pyfilesystem2-$pkgver/setup.py -} - build() { - cd "$srcdir"/pyfilesystem2-$pkgver + cd pyfilesystem2-$pkgver python setup.py build - - cd "$srcdir"/pyfilesystem2-$pkgver-py2 - python2 setup.py build } check() { - export LC_CTYPE=en_US.UTF-8 - - cd "$srcdir"/pyfilesystem2-$pkgver + cd pyfilesystem2-$pkgver python setup.py install --root="$PWD/tmp_install" --optimize=1 PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" nosetests3 tests - - cd "$srcdir"/pyfilesystem2-$pkgver-py2 - python2 setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" nosetests2 tests } -package_python-fs() { - depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six') - +package() { cd pyfilesystem2-$pkgver - python setup.py install --root="${pkgdir}" --optimize=1 - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-fs() { - depends=('python2-appdirs' 'python2-enum34' 'python2-pytz' 'python2-scandir' 'python2-setuptools' - 'python2-six' 'python2-typing' 'python2-backports.os') - - cd pyfilesystem2-$pkgver-py2 - python2 setup.py install --root="${pkgdir}" --optimize=1 - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE -}