[arch-commits] Commit in python2-scandir (3 files)
Antonio Rojas
arojas at archlinux.org
Thu Apr 23 08:59:41 UTC 2020
Date: Thursday, April 23, 2020 @ 08:59:41
Author: arojas
Revision: 617819
archrelease: copy trunk to community-x86_64
Added:
python2-scandir/repos/
python2-scandir/repos/community-x86_64/
python2-scandir/repos/community-x86_64/PKGBUILD
(from rev 617817, python2-scandir/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python2-scandir/repos/community-x86_64/PKGBUILD (from rev 617817, python2-scandir/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2020-04-23 08:59:41 UTC (rev 617819)
@@ -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