Date: Tuesday, February 18, 2020 @ 18:52:59 Author: felixonmars Revision: 375845
upgpkg: python2-isort 4.3.5-1 Added: python2-isort/ python2-isort/repos/ python2-isort/trunk/ python2-isort/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Added: python2-isort/trunk/PKGBUILD =================================================================== --- python2-isort/trunk/PKGBUILD (rev 0) +++ python2-isort/trunk/PKGBUILD 2020-02-18 18:52:59 UTC (rev 375845) @@ -0,0 +1,26 @@ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Yaron de Leeuw <[email protected]> + +pkgname=python2-isort +pkgver=4.3.5 +pkgrel=1 +pkgdesc="A Python utility / library to sort Python imports." +arch=('any') +url="https://github.com/timothycrosley/isort" +license=('MIT') +depends=('python2-futures' 'python2-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz") +sha512sums=('09615458cd201d52bc573d060acf51aad2fcda9cd80e87592e1f60d820155e1664149c445a72bc23121a3a1550a1ef39a308871eb1dc12b7b509be6c5731afdf') + +build() { + cd isort-$pkgver + python2 setup.py build +} + +package() { + cd isort-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + mv "$pkgdir"/usr/bin/isort{,2} +}
