summaryrefslogtreecommitdiff
path: root/core/linux-lts/PKGBUILD
blob: 420d955c69bed8e9fb3889734035dda9c07a85ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# upstream git revision: aa3099fdbcdc763beb8c76152a80e71af1a59616

# fail if upstream's .config changes
for ((i=0; i<${#sha256sums[@]}; i++)); do
  if [ "${sha256sums[${i}]}" = '68de8b84a6e6a61b7107ca1ba6dd3f729531af890af8bebe3b9ba4bb1ec0d118' ]; then
    sha256sums[${i}]='f8d0562d01c359af4e53f04265cadcb2c12cbf59aad3494c74259805e1311d5f'
  fi
done

eval "$(
  declare -f package_linux-lts-headers | \
    sed '
      \,/tools/objtool" ,d
      \,arch/x86/Makefile,a install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile_32.cpu
    '
)"

# avoid using zstd compression in ultra mode (exhausts virtual memory)
source+=('no-ultra-zstd.patch')
sha256sums+=('3997ce6033fdf950a9960f1db720b38c47b1a2e06ab75fc6712c154f596e7c47')
# upstream prepare() does already do the *.patch patching

# temporarily disabled documentation due to sphinx_rtd_theme (FS32#163)
pkgname=(
  $(
    printf '%s\n' "${pkgname[@]}" | \
      grep -v '^\$pkgbase-docs'
  )
)
eval "$(
  declare -f build | \
    sed '
      s/\bhtmldocs\b//
    '
)"
makedepends=(${makedepends[@]//python-sphinx_rtd_theme/})
makedepends=(${makedepends[@]//python-sphinx/})
makedepends=(${makedepends[@]//graphviz/})
makedepends=(${makedepends[@]//imagemagick/})
makedepends=(${makedepends[@]//texlive-latexextra/})