File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ python3
Original file line number Diff line number Diff line change @@ -25,9 +25,11 @@ homepage="https://www.python.org"
2525_bluez="bluez-5.78"
2626distfiles="
2727 https://www.python.org/ftp/python/${version%rc*}/Python-${version}.tar.xz
28+ https://www.python.org/ftp/python/doc/${version}/python-${version}-docs-html.tar.bz2
2829 ${KERNEL_SITE}/bluetooth/${_bluez}.tar.xz
2930"
3031checksum="a97d5549e9ad81fe17159ed02c68774ad5d266c72f8d9a0b5a9c371fe85d902b
32+ 1ac42341fdb73ff6176f6004ba0d8276b8b61b06a9bb80bf2e6ccc170f7fd47c
3133 830fed1915c5d375b8de0f5e6f45fcdea0dcc5ff5ffb3d31db6ed0f00d73c5e3"
3234skip_extraction="${_bluez}.tar.xz"
3335
@@ -58,6 +60,11 @@ post_extract() {
5860 bsdtar -C External --strip-components=1 -x \
5961 -f "${_srcdistdir}/${_bluez}.tar.xz" "${_bluez}/lib/*.h"
6062 mv External/lib External/bluetooth
63+
64+ # Extract Python documents
65+ mkdir docs
66+ bsdtar -C docs --strip-components=1 -x \
67+ -f "${_srcdistdir}/python-${version}-docs-html.tar.bz2"
6168}
6269
6370post_patch() {
@@ -176,3 +183,13 @@ python3-devel_package() {
176183 mv "${PKGDESTDIR}/${py3_inc}/pyconfig.h" "${DESTDIR}/${py3_inc}"
177184 }
178185}
186+
187+ python3-doc_package() {
188+ short_desc+=" - documents"
189+ depends="${sourcepkg}-${version}_${revision}"
190+ pkg_install() {
191+ local _docs_path="usr/share/doc/python3/"
192+ vmkdir $_docs_path
193+ vcopy docs/* $_docs_path
194+ }
195+ }
Original file line number Diff line number Diff line change 1+ s6-frontend
You can’t perform that action at this time.
0 commit comments