summaryrefslogtreecommitdiff
path: root/libre/linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-08-24 15:04:53 -0300
committerDavid P <megver83@parabola.nu>2018-08-24 15:04:53 -0300
commit5f9d302f32c4899da8b1db16fed3548706e5847a (patch)
tree5eddafdb739e02f89723c028765d25f77d652326 /libre/linux-libre/PKGBUILD
parente26369ed2a60af5f8e835166b04dd8f38d708f97 (diff)
downloadabslibre-5f9d302f32c4899da8b1db16fed3548706e5847a.tar.gz
abslibre-5f9d302f32c4899da8b1db16fed3548706e5847a.tar.bz2
abslibre-5f9d302f32c4899da8b1db16fed3548706e5847a.zip
upgpkg: libre/linux-libre 4.18.4_gnu-1
Just pushing to abslibre, not real build Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/linux-libre/PKGBUILD')
-rw-r--r--libre/linux-libre/PKGBUILD28
1 files changed, 24 insertions, 4 deletions
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"
}