This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 303
/
PKGBUILD
68 lines (62 loc) · 2.68 KB
/
PKGBUILD
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Sébastien Luttringer
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Fabio Volpe <volpefabio@gmail.com>
pkgname=python-sphinx
pkgver=5.0.0
pkgrel=2
pkgdesc='Python documentation generator'
arch=('any')
url=http://www.sphinx-doc.org/
license=('BSD')
depends=('python-babel'
'python-docutils'
'python-imagesize'
'python-jinja'
'python-packaging'
'python-pygments'
'python-requests'
'python-snowballstemmer'
'python-sphinx-alabaster-theme'
'python-sphinxcontrib-'{{apple,dev,html}help,jsmath,qthelp,serializinghtml})
makedepends=('python-setuptools')
checkdepends=('cython'
'imagemagick' 'librsvg'
'python-html5lib'
'python-pytest'
'texlive-fontsextra' 'texlive-latexextra')
optdepends=('imagemagick: for ext.imgconverter'
'texlive-latexextra: for generation of PDF documentation')
source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz"{,.asc}
'sphinx-fix_testcase.patch::https://github.com/sphinx-doc/sphinx/commit/a904ab563a14ee5891551fdecf0d66d26774979f.patch'
'sphinx-fix_findall.patch::https://github.com/sphinx-doc/sphinx/pull/10504.patch')
sha256sums=('464d9c1bd5613bcebe76b46658763f3f3dbb184da7406e632a84596d3cd8ee90'
'SKIP'
'9d6c995585945a0a3f996c3c965a4018cb052aa91b0037cd5539212dab1c3cbd'
'5b347e3c37cffcce47684be53cda7239eefdf449d2fb6bdf9dcf8494c8a9a399')
b2sums=('95f2b85c7de6d900922730c3e431259e2333b3fe27e25cbe35e9584ccf1ac3442ca0949018e64ca8481e60f2298b46f6a77523a7a67e6aafe7492b62ff97aa70'
'SKIP'
'bcb94aefbdbb418b14bdc320c0fd796633c34a1f23f0934a0b78a555e460906de86496f3f85a1304d9adaf6c3914f3cc57a20ab837aa8f23362f5779833f4ce6'
'6f1e0f5a374cf520926897ab7232f776a4cd54f625ddfd93fa6e1272b5bb40858ccf3a2e858eebcffe65e7577f1699b79cab7561312dcf4794e27bcf36f6afd5')
validpgpkeys=('8A11B79A5D0D749A66F0A030102C2C17498D6B9E' # Takeshi KOMIYA <i.tkomiya@gmail.com>
'E9BEABB07E7B9CC3F56E62C91425F8CE5EBA0E07') # Takayuki Shimizukawa <shimizukawa@gmail.com>
prepare() {
cd Sphinx-$pkgver
patch --forward --strip=1 --input=../sphinx-fix_testcase.patch
patch --forward --strip=1 --input=../sphinx-fix_findall.patch
}
build() {
cd Sphinx-$pkgver
make build
}
check() {
cd Sphinx-$pkgver
LC_ALL="en_US.UTF-8" make test
}
package() {
cd Sphinx-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
# vim:set ts=2 sw=2 et: