# Maintainer: nblock pkgname=cruft pkgver=2.4.0 pkgrel=1 pkgdesc='Maintain all the necessary boilerplate for packaging and building projects separate from the code you intentionally write. Fully compatible with existing Cookiecutter templates' arch=('any') url='https://cruft.github.io/cruft/' license=('MIT') depends=('python' 'python-click' 'python-cookiecutter' 'python-gitpython' 'python-typer') optdepends=('python-toml: specify patterns to ignore in toml files') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") sha1sums=('058fadccb0d0fcec297278b2f8d4ba6d89536df7') sha256sums=('bd1684f51ce1d547906fcb5341249564c320fbe958e175c14b66e92966dba72b') build() { cd "$pkgname-$pkgver" python setup.py build } package() { cd "$pkgname-$pkgver" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build } # vim:set ts=2 sw=2 noet: