void-packages/srcpkgs/python-scandir/template
2020-10-10 10:22:20 -04:00

30 lines
838 B
Bash

# Template file for 'python-scandir'
pkgname=python-scandir
version=1.10.0
revision=4
wrksrc="scandir-${version}"
build_style=python-module
pycompile_module="scandir.py"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python"
short_desc="Better directory iterator and faster os.walk() (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/benhoyt/scandir"
distfiles="${PYPI_SITE}/s/scandir/scandir-${version}.tar.gz"
checksum=4d4631f6062e658e9007ab3149a9b914f3548cb38bfb021c64f39a025ce578ae
python3-scandir_package() {
pycompile_module="scandir.py"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}
post_install() {
vlicense LICENSE.txt
}