diff --git a/srcpkgs/python3-doc/template b/srcpkgs/python3-doc/template new file mode 100644 index 00000000000000..be72ac5ee9c77e --- /dev/null +++ b/srcpkgs/python3-doc/template @@ -0,0 +1,24 @@ +# Template file for 'python3-doc' +pkgname=python3-doc +version=3.14 +revision=1 +short_desc="Python programming language documnetion (${version} series)" +maintainer="Komeil Parseh " +license="Python-2.0" +homepage="https://docs.python.org" +distfiles=" https://www.python.org/ftp/python/doc/${version}/python-${version}-docs-html.tar.bz2" +checksum="1ac42341fdb73ff6176f6004ba0d8276b8b61b06a9bb80bf2e6ccc170f7fd47c" + + +do_extract() { + # Extract Python documents + mkdir docs + bsdtar -C docs --strip-components=1 -x \ + -f "${_srcdistdir}/python-${version}-docs-html.tar.bz2" +} + +do_install() { + local _docs_path="usr/share/doc/python3/" + vmkdir $_docs_path + vcopy docs/* $_docs_path +}