blob: 35aefcbe77120c6ad2100e1eda7288fbb79fde7c (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# upstream git revision: 31815a3e546bd3a4e4bc8883d2133e7dae1b4164
# fail if upstream's .config changes
for ((i=0; i<${#sha256sums[@]}; i++)); do
if [ "${sha256sums[${i}]}" = '8924e710cf047279574bd3dd5a8a9869f7baeb0cd291bbaf3b9530c70600a643' ]; then
sha256sums[${i}]='f7f6dced8d83916a92dcd64f9314161a99e39093164a74342b1596247552d623'
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
$ i depends+=(gcc-libs=$(_get_gcc_version_from_config))
'
)"
_get_gcc_version_from_config() {
if [ -z "$srcdir" ]; then
gcc --version \
| sed '
s@^.* @@
1!d
'
else
for _config_file in "$srcdir/$_srcname/.config" "$srcdir/config" "${srcdir%/*}/config"; do
[ -f "$_config_file" ] && break
done
sed '
s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/
t
d
' "$_config_file"
fi
}
# 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/})
|