Date: Friday, November 29, 2019 @ 14:56:15 Author: heftig Revision: 369914
5.4.1.arch1-1 Modified: linux/trunk/PKGBUILD linux/trunk/config ----------+ PKGBUILD | 36 +++++++++++++++++++++++++++++++----- config | 2 +- 2 files changed, 32 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-29 14:56:09 UTC (rev 369913) +++ PKGBUILD 2019-11-29 14:56:15 UTC (rev 369914) @@ -1,7 +1,7 @@ # Maintainer: Jan Alexander Steffens (heftig) <[email protected]> pkgbase=linux -pkgver=5.4.arch1 +pkgver=5.4.1.arch1 pkgrel=1 pkgdesc='Linux' _srctag=v${pkgver%.*}-${pkgver##*.} @@ -8,7 +8,11 @@ url="https://git.archlinux.org/linux.git/log/?h=$_srctag" arch=(x86_64) license=(GPL2) -makedepends=(bc kmod libelf git) +makedepends=( + bc kmod libelf + xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick + git +) options=('!strip') _srcname=archlinux-linux source=( @@ -21,7 +25,7 @@ '8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig) ) sha256sums=('SKIP' - 'bbf6f0f69de9b1aefc2374da6b289a132b945e87a94ec85728097c677ebbac3f') + 'b7f23bbc09b6c571b76f851f0389386a6f3a64f3d7b1b8509c8550228b0f4537') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase @@ -54,7 +58,7 @@ build() { cd $_srcname - make bzImage modules + make bzImage modules htmldocs } _package() { @@ -163,7 +167,29 @@ chmod -Rc u=rwX,go=rX "$pkgdir" } -pkgname=("$pkgbase" "$pkgbase-headers") +_package-docs() { + pkgdesc="Documentation for the $pkgdesc kernel" + + cd $_srcname + local builddir="$pkgdir/usr/lib/modules/$(<version)/build" + + msg2 "Installing documentation..." + local src dst + while read -rd '' src; do + 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" + 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") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") Modified: config =================================================================== --- config 2019-11-29 14:56:09 UTC (rev 369913) +++ config 2019-11-29 14:56:15 UTC (rev 369914) @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.4.0-arch1 Kernel Configuration +# Linux/x86 5.4.1-arch1 Kernel Configuration # #
