summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d033cf1d72aed79187fe3b26fad5c5a76a7251e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: @RubenKelevra <cyrond@gmail.com>

pkgname='python-scantree'
_module=${pkgname#python-}
pkgver='0.0.1'
pkgrel=3
pkgdesc='Flexible recursive directory iterator: scandir meets glob("**", recursive=True)'
url="https://github.com/andhus/scantree"
depends=('python>=3.11')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
b2sums=('c891396ca2388457b3394e5e87cb29a92fe16f480e013ef560168cbeef4e2f9a1d9dab055945de34d2086032b12c8fec0d8a56f9dd0cdacd910250840e040490')

build() {
	cd "${srcdir}/${_module}-${pkgver}"
	python setup.py build
}

package() {
	cd "${srcdir}/${_module}-${pkgver}"
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-scantree/LICENSE"
	python setup.py install --root="${pkgdir}" --optimize=2 --skip-build
}