summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD73
1 files changed, 53 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c3546f..7cf1018 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,27 +13,29 @@
# Arch version allows insecure filesystems
# Arch version is 300 Hz
# Arch version is not configured for openrc
-# Arch version builds docs using python and graphviz
# Arch version uses git
pkgbase=linux-ck
-_majver=5.1
-_minver=18
+_majver=5.2
+_minver=2
if [ "$_minver" == "0" ]; then
pkgver=${_majver}
else
pkgver=${_majver}.${_minver}
fi
-_ckpatchversion=1
-_ckpatch="patch-${_majver}-ck${_ckpatchversion}"
-_gcc_more_v='20180509'
+_ckpatchversion=ck1
+_ckpatch="patch-${_majver}-${_ckpatchversion}"
+_gcc_more_v='20190714'
_srcname=linux-${pkgver}
pkgrel=1
url='https://kernel.org'
#url='http://ck.kolivas.org/patches/'
arch=('x86_64')
license=('GPL2')
-makedepends=('xmlto' 'kmod' 'inetutils' 'bc' 'libelf')
+makedepends=(
+ 'xmlto' 'kmod' 'inetutils' 'bc' 'libelf'
+ 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick'
+ )
conflicts=('linux-libre')
options=('!strip')
source=(
@@ -42,9 +44,9 @@ source=(
0002-ZEN-Add-CONFIG-for-unprivileged_userns_clone.patch
0003-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch
ck_remove-excess-extraversion.patch
- http://ck.kolivas.org/patches/5.0/${_majver}/${_majver}-ck${_ckpatchversion}/${_ckpatch}.xz
+ linux-ck-patch-${_majver}-${_ckpatchversion}.xz::http://ck.kolivas.org/patches/5.0/${_majver}/${_majver}-${_ckpatchversion}/${_ckpatch}.xz
graysky_bdver2-hotfix.patch
- enable_additional_cpu_optimizations-$_gcc_more_v.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/$_gcc_more_v.tar.gz
+ kernel-gcc-patch-$_gcc_more_v.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/$_gcc_more_v.tar.gz
ath9k-regdom-hack.patch
raid6-default-algo.patch
config.x86_64 # the main kernel config files
@@ -52,18 +54,18 @@ source=(
90-linux.hook # pacman hook for initramfs regeneration
linux.preset # standard config files for mkinitcpio ramdisk
)
-sha256sums=('6013e7dcf59d7c1b168d8edce3dbd61ce340ff289541f920dbd0958bef98f36a'
+sha256sums=('e5d91382699391e228efae87903ffeeac39b9e694ee3cf32970c87d28e516d9c'
'SKIP'
'91fafa76bf9cb32159ac7f22191b3589278b91e65bc4505cf2fc6013b8037bf3'
'63e4378e69e2f23ed87af32a4951477a6d82d4ac0de2295db46502c8120da9d9'
'8449de698dfc8f95ff03dbfd98b6abdd71dbc4238896256690cb856fe366aac3'
- 'a2db6672b2d35f3006c7151e8fa90f5187dcdac9fcc46e88e78d45c7d8226d1f'
- 'f8d18a34f6b17ec8e5f2a7354383ca627e0fd00b5578c1ee7d9808a34f33c724'
- '229e063a578db0a278108f37b24da20c2a2a18d825e98a67e426cb0f4b492e4a'
- '226e30068ea0fecdb22f337391385701996bfbdba37cdcf0f1dbf55f1080542d'
+ '152c551bd03e92d6458b0d9f352c97eb058014ab019fa213167a6f8178bd6d71'
+ 'f1abc13a8d859fbf6350040e45d7f04ad551a6d39f113ba96fbbd820118c0e36'
+ '5d52143dc2c5888348ce9866baff6a7a2fc975cccc7236dc572fde438ba636e0'
+ '2466fb4aecc66d1b258b4cbdb2f215b5099f266d8c4386bb62ad1a0acd0caf5b'
'e7ebf050c22bcec0028c0b3c79fd6d3913b0370ecc6a23dfe78ce475630cf503'
'0f81d6e4158b7beeb0eb514f1b9401f7e23699cb0f7b0d513e25dae1815daaeb'
- '4c6e86b9a5dbbc672419c556cbe1123f22cd5b0da756c5018dd45be2f303362b'
+ 'a687cd1da6a7deba5b00f60754e0870fc8fde49b309c07293b3f96b174f3bc84'
'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
'75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
@@ -92,20 +94,20 @@ prepare() {
# ck hotfixes
msg2 "Applying ck patch hotfixes"
- patch -p1 -i ../ck_remove-excess-extraversion.patch "$srcdir/${_ckpatch}"
+ patch -p1 -i ../ck_remove-excess-extraversion.patch "$srcdir/linux-ck-patch-${_majver}-${_ckpatchversion}"
# ck patch
msg2 "Applying ck patch"
- patch -F 3 -Np1 -i ../${_ckpatch}
+ patch -F 3 -Np1 -i ../linux-ck-patch-${_majver}-${_ckpatchversion}
# graysky gcc hotfixes
msg2 "Applying graysky gcc patch hotfixes"
- patch -p1 -i ../graysky_bdver2-hotfix.patch "$srcdir/kernel_gcc_patch-${_gcc_more_v}/enable_additional_cpu_optimizations_for_gcc_v8.1+_kernel_v4.13+.patch"
+ patch -p1 -i ../graysky_bdver2-hotfix.patch "$srcdir/kernel_gcc_patch-${_gcc_more_v}/enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch"
# graysky gcc patch
msg2 "Applying graysky cpu patch"
- patch -p1 -i ../kernel_gcc_patch-${_gcc_more_v}/enable_additional_cpu_optimizations_for_gcc_v8.1+_kernel_v4.13+.patch
+ patch -p1 -i ../kernel_gcc_patch-${_gcc_more_v}/enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch
# Ignore ath9k eeprom patch
@@ -300,7 +302,38 @@ _package-headers() {
chmod -Rc u=rwX,go=rX "$pkgdir"
}
-pkgname=("$pkgbase" "$pkgbase-headers")
+_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")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")