[arch-commits] Commit in linux-lts/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Nov 29 14:56:19 UTC 2019
Date: Friday, November 29, 2019 @ 14:56:19
Author: heftig
Revision: 369915
Changes from testing/linux:
- Remove inetutils from deps (we provide KBUILD_BUILD_HOST)
- Move xmlto to docs deps line
- Simplify the documentation installation
Modified:
linux-lts/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-29 14:56:15 UTC (rev 369914)
+++ PKGBUILD 2019-11-29 14:56:19 UTC (rev 369915)
@@ -8,8 +8,8 @@
arch=(x86_64)
license=(GPL2)
makedepends=(
- xmlto kmod inetutils bc libelf
- python-sphinx python-sphinx_rtd_theme graphviz imagemagick
+ bc kmod libelf
+ xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
)
options=('!strip')
_srcname=linux-$pkgver
@@ -172,26 +172,18 @@
}
_package-docs() {
- pkgdesc="Kernel hacker's manual for the $pkgdesc kernel"
+ pkgdesc="Documentation for the $pkgdesc kernel"
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
msg2 "Installing documentation..."
- mkdir -p "$builddir"
- cp -t "$builddir" -a Documentation
-
- msg2 "Removing unneeded files..."
- rm -rv "$builddir"/Documentation/{,output/}.[^.]*
-
- 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)
+ dst="${src#Documentation/}"
+ dst="$builddir/Documentation/${dst#output/}"
+ install -Dm644 "$src" "$dst"
+ done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
msg2 "Adding symlink..."
mkdir -p "$pkgdir/usr/share/doc"
More information about the arch-commits
mailing list