[arch-commits] Commit in python-docs/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 23:25:42 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:25:42
  Author: foutrelis
Revision: 1062976

archrelease: copy trunk to community-staging-any

Added:
  python-docs/repos/community-staging-any/
  python-docs/repos/community-staging-any/PKGBUILD
    (from rev 1062975, python-docs/trunk/PKGBUILD)

----------+
 PKGBUILD |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Copied: python-docs/repos/community-staging-any/PKGBUILD (from rev 1062975, python-docs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:25:42 UTC (rev 1062976)
@@ -0,0 +1,24 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Rohan Dhruva (rohandhruva at gmail dot com)
+
+pkgname=python-docs
+pkgver=3.10.0
+pkgrel=2
+pkgdesc="Set of HTML documentation for python"
+arch=('any')
+url="https://docs.python.org/py3k/"
+license=('GPL')
+options=('docs')
+source=(https://sources.archlinux.org/other/community/python-docs/python-$pkgver-docs-html.tar.bz2)
+sha256sums=('e85dd6dca2cb740ea1a2fb88b1e556b4eaa898b10b2b61b37d1f7f9913cdab39')
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/doc/python/html
+  cp -rf "$srcdir"/python-$pkgver-docs-html/* "$pkgdir"/usr/share/doc/python/html/
+  find "$pkgdir"/usr/share/doc/python/html/ -type f -exec chmod 0644 {} \;
+  find "$pkgdir"/usr/share/doc/python/html/ -type d -exec chmod 0755 {} \;
+  install -dm0755 "$pkgdir"/etc/profile.d
+  echo "export PYTHONDOCS=/usr/share/doc/python/html/library" >"$pkgdir"/etc/profile.d/$pkgname.sh
+  echo "setenv PYTHONDOCS /usr/share/doc/python/html/library" >"$pkgdir"/etc/profile.d/$pkgname.csh
+}



More information about the arch-commits mailing list