summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0452773b4e83071773f353772c36d7d6c2a7bfc1 (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
26
27
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=python-setuptools-git-ls-files
_pyname=${pkgname#python-}
pkgver=0.1.2
pkgrel=5
pkgdesc='A plugin for setuptools that finds all git tracked files, including submodules'
arch=(any)
url="https://github.com/anthrotype/${_pyname//-/_}"
license=(MIT)
depends=(python)
makedepends=(python-{build,installer,wheel}
             python-setuptools-scm)
_archive="${_pyname//-/_}-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('7d612087430dc912f0dca7a35c99bf791b2f86b7fa5a40c5a562192947c86efa')

build() {
	cd "$_archive"
	python -m build -wn
}

package() {
	cd "$_archive"
	python -m installer -d "$pkgdir" dist/*.whl
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}