summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04e4ef782180315b2d55e454f5aed18341e9ac32 (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
28
29
30
31
# Maintainer: gkmcd <g@dramati.cc>

pkgname=('python-pyscaffold')
pkgver=3.2.3
pkgrel=2
pkgdesc="Python project template generator with batteries included"
url="https://pyscaffold.org/"
arch=('any')
license=('MIT')
depends=('python' 'python-setuptools-scm' 'git')
optdepends=('python-django: Scaffold Django projects.'
            'python-cookiecutter: Create custom scaffold templates.'
            'python-pre-commit: Use Git pre-commit hooks.'
            'python-sphinx: Support building documentation with Sphinx.'
            'python-pytest: Use the integrated unit testing.'
            'python-pytest-runner: Use the integrated unit testing.'
            'python-pytest-cov: Generate a coverage report for your project.')
makedepends=('git' 'python-wheel')
source=("pyscaffold-${pkgver}::git+https://github.com/pyscaffold/pyscaffold.git#tag=v${pkgver}")
md5sums=('SKIP')

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

package_python-pyscaffold() {
  cd "${srcdir}/pyscaffold-$pkgver"
  python setup.py install --root=${pkgdir}
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}