summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89b4bd0b6df4afedc42d37975b2bccaadd619eff (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: Nicolás Celedón-Hernández <coriollis.nch at gmail dot com>

pkgname=ford
pkgver=7.0.10
pkgrel=1
pkgdesc='Automatically generates FORtran Documentation from comments within the code'
arch=(any)
url='https://github.com/Fortran-FOSS-Programmers/ford'
license=('GPL-3.0-only')
depends=('python-toposort' 'python-markdown' 'python-markdown-include' 'python-markdown-math' \
'python-tqdm' 'python-bs4' 'python-graphviz' 'python-pygments' 'python-jinja' \
'python-importlib-metadata' 'python-tomli' 'python-rich' 'python-pcpp')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm')
optdepends=('fortls: Fortran Language Server compatible with FORD documentation' 'python-sphinx' \
'python-sphinx-autodoc-typehints' 'python-sphinx-inline-tabs' 'python-sphinx-book-theme' \
'sphinx-argparse-cli')
source=("https://pypi.io/packages/source/f/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('b1271adcd8a33af89aa65cd176ed25fe252b3e0a52aa9f1fd00b0e8c51fc4086')

build() {
	cd "$pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

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

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