summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4463ed85c9cdb3d829fca220f48156eea3a798ba (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
pkgname=python-doc8
_pyname=doc8
pkgver=1.1.1
pkgrel=2
arch=(any)
pkgdesc="Style checker for Sphinx (or other) RST documentation"
url='https://pypi.python.org/pypi/doc8'
license=('Apache 2.0')
depends=('python-stevedore' 'python-chardet' 'python-docutils' 'python-six' 'python-restructuredtext_lint')
makedepends=(python-build python-installer python-wheel 'python-setuptools-scm>=7')
source=("https://files.pythonhosted.org/packages/source/d/${_pyname}/${_pyname}-${pkgver}.tar.gz" "scm.patch")

prepare() {
  cd "$srcdir/$_pyname-$pkgver"
  patch -p1 -i $srcdir/scm.patch
}

build() {
  cd "$srcdir/$_pyname-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_pyname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha256sums=('d97a93e8f5a2efc4713a0804657dedad83745cca4cd1d88de9186f77f9776004'
            'fa5dad03044736139ba64ad72d6157e414a00124b4e4ec277dcb6d2a655935c3')