Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/python3-doc
19 changes: 18 additions & 1 deletion srcpkgs/python3/template
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ homepage="https://www.python.org"
_bluez="bluez-5.78"
distfiles="
https://www.python.org/ftp/python/${version%rc*}/Python-${version}.tar.xz
https://www.python.org/ftp/python/doc/${version}/python-${version}-docs-html.tar.bz2
${KERNEL_SITE}/bluetooth/${_bluez}.tar.xz
"
checksum="a97d5549e9ad81fe17159ed02c68774ad5d266c72f8d9a0b5a9c371fe85d902b
1ac42341fdb73ff6176f6004ba0d8276b8b61b06a9bb80bf2e6ccc170f7fd47c
830fed1915c5d375b8de0f5e6f45fcdea0dcc5ff5ffb3d31db6ed0f00d73c5e3"
skip_extraction="${_bluez}.tar.xz"
skip_extraction="${_bluez}.tar.xz python-${version}-docs-html.tar.bz2"

alternatives="
python:pydoc:/usr/bin/pydoc${version%.*}
Expand Down Expand Up @@ -58,6 +60,11 @@ post_extract() {
bsdtar -C External --strip-components=1 -x \
-f "${_srcdistdir}/${_bluez}.tar.xz" "${_bluez}/lib/*.h"
mv External/lib External/bluetooth

# Extract Python documents
mkdir docs
bsdtar -C docs --strip-components=1 -x \
-f "${_srcdistdir}/python-${version}-docs-html.tar.bz2"
}

post_patch() {
Expand Down Expand Up @@ -176,3 +183,13 @@ python3-devel_package() {
mv "${PKGDESTDIR}/${py3_inc}/pyconfig.h" "${DESTDIR}/${py3_inc}"
}
}

python3-doc_package() {
short_desc+=" - documents"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
local _docs_path="usr/share/doc/python3/"
vmkdir $_docs_path
vcopy docs/* $_docs_path
}
}