Skip to content

Commit acdc8cc

Browse files
committed
New package: python3-doc-3.14.3.
1 parent f2a71bf commit acdc8cc

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

srcpkgs/python3-doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python3

srcpkgs/python3/template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ homepage="https://www.python.org"
2525
_bluez="bluez-5.78"
2626
distfiles="
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
"
3031
checksum="a97d5549e9ad81fe17159ed02c68774ad5d266c72f8d9a0b5a9c371fe85d902b
32+
1ac42341fdb73ff6176f6004ba0d8276b8b61b06a9bb80bf2e6ccc170f7fd47c
3133
830fed1915c5d375b8de0f5e6f45fcdea0dcc5ff5ffb3d31db6ed0f00d73c5e3"
3234
skip_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

6370
post_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+
}

srcpkgs/s6-frontend-doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
s6-frontend

0 commit comments

Comments
 (0)