[arch-commits] Commit in (3 files)
Antonio Rojas
arojas at archlinux.org
Thu Apr 23 08:59:12 UTC 2020
Date: Thursday, April 23, 2020 @ 08:59:12
Author: arojas
Revision: 617816
Restore python2-scandir package, python3 version is not needed
Added:
python2-scandir/
python2-scandir/trunk/
python2-scandir/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: python2-scandir/trunk/PKGBUILD
===================================================================
--- python2-scandir/trunk/PKGBUILD (rev 0)
+++ python2-scandir/trunk/PKGBUILD 2020-04-23 08:59:12 UTC (rev 617816)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-scandir
+pkgver=1.10.0
+pkgrel=3
+pkgdesc="A better directory iterator and faster os.walk()"
+arch=('x86_64')
+url="https://github.com/benhoyt/scandir"
+license=('BSD')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/benhoyt/scandir/archive/v$pkgver.tar.gz")
+sha512sums=('1641ee5060331fe35a5f97c26a14423cf94fe462cdf875746e29ce095d00b9fc34291efd50ee67f1613d19312a8ed737f29a5092a38afdb1dc817fadc52a508f')
+
+build() {
+ cd scandir-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd scandir-$pkgver
+ LC_CTYPE=en_US.UTF-8 python2 test/run_tests.py
+}
+
+package() {
+ cd scandir-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list