From 5f9d302f32c4899da8b1db16fed3548706e5847a Mon Sep 17 00:00:00 2001 From: David P Date: Fri, 24 Aug 2018 15:04:53 -0300 Subject: upgpkg: libre/linux-libre 4.18.4_gnu-1 Just pushing to abslibre, not real build Signed-off-by: David P --- libre/linux-libre/PKGBUILD | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'libre/linux-libre/PKGBUILD') diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index 2d53594b9..5bd7209d0 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -12,7 +12,7 @@ pkgbase=linux-libre # Build stock kernel #pkgbase=linux-libre-custom # Build kernel with a different name _srcbasever=4.18-gnu -_srcver=4.18.3-gnu +_srcver=4.18.4-gnu _archrel=arch1 _replacesarchkernel=('linux%') # '%' gets replaced with _kernelname @@ -27,7 +27,7 @@ rcnrel=armv7-x5 arch=(i686 x86_64 armv7h) url="https://linux-libre.fsfla.org/" license=(GPL2) -makedepends=(xmlto kmod inetutils bc libelf) +makedepends=(xmlto kmod inetutils bc libelf python-sphinx graphviz) options=('!strip') source=( "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcbasever}/linux-libre-${_srcbasever}.tar.xz"{,.sign} @@ -179,9 +179,9 @@ prepare() { build() { cd $_srcname if [ "$CARCH" = "armv7h" ]; then - make $MAKEFLAGS zImage modules dtbs + make $MAKEFLAGS zImage modules dtbs htmldocs elif [ "$CARCH" = "x86_64" ] || [ "$CARCH" = "i686" ]; then - make bzImage modules + make bzImage modules htmldocs fi } @@ -354,6 +354,10 @@ _package-headers() { esac done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) + msg2 "Adding symlink..." + mkdir -p "$pkgdir/usr/src" + ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase-$pkgver" + msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" } @@ -372,6 +376,22 @@ _package-docs() { 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" } -- cgit v1.2.3