diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-17 22:38:54 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-17 22:38:54 -0700 |
commit | 3c666f1cc7cc1eea87667534582da5eca02d7f2a (patch) | |
tree | edc5312afd6cf5e7f7188098ed1c2409c8bad97b | |
parent | Updated to 5.3.0 (diff) | |
download | linux-libre-3c666f1cc7cc1eea87667534582da5eca02d7f2a.tar.xz |
Remove yet again broken kernel docs
pkgrel
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 3 insertions, 35 deletions
@@ -23,13 +23,12 @@ _gnumajver=${_majver}-gnu _gnupkgver=${pkgver}-gnu _gccpatchver='20190822' _srcname=linux-${_majver} -pkgrel=2 +pkgrel=1 url='https://linux-libre.fsfla.org/' arch=('x86_64') license=('GPL2') makedepends=( 'xmlto' 'kmod' 'inetutils' 'bc' 'libelf' - 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' ) conflicts=('linux') options=('!strip') @@ -139,7 +138,7 @@ prepare() { build() { cd $_srcname - make bzImage modules htmldocs + make bzImage modules } _package() { @@ -279,38 +278,7 @@ _package-headers() { chmod -Rc u=rwX,go=rX "$pkgdir" } -_package-docs() { - pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel" - - local builddir="$pkgdir/usr/lib/modules/$(<version)/build" - - cd $_srcname - - msg2 "Installing documentation..." - mkdir -p "$builddir" - cp -t "$builddir" -a Documentation - - msg2 "Removing doctrees..." - rm -r "$builddir/Documentation/output/.doctrees" - - msg2 "Moving HTML docs..." - local src dst - while read -rd '' src; do - dst="$builddir/Documentation/${src#$builddir/Documentation/output/}" - mkdir -p "${dst%/*}" - mv "$src" "$dst" - rmdir -p --ignore-fail-on-non-empty "${src%/*}" - done < <(find "$builddir/Documentation/output" -type f -print0) - - msg2 "Adding symlink..." - mkdir -p "$pkgdir/usr/share/doc" - ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" - - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" -} - -pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs") +pkgname=("$pkgbase" "$pkgbase-headers") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") |