Could you please either change the retrieval of the source code to the tar archive like for examlpe the linux-clear package does or alternatively use something like git clone --depth 1 --branch $gitver https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
?
It's completely unnecessary to retrieve the complete git history of the kernel (it wastes a lot of space when being kept in the cache directory and takes forever to download on a clean build).
Compare your current PKGBUILD:
[..]
Receiving objects: 100% (9277799/9277799), 3.43 GiB | 8.04 MiB/s, done.
[..]
dev@vm:~$ du -hs ~/.cache/yay/linux-amd-znver2/linux
3,7G ~/.cache/yay/linux-amd-znver2/linux
Using only the current/required state (--depth 1):
dev@vm:~$ git clone --depth 1 --branch v5.11.1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[..]
Receiving objects: 100% (75668/75668), 202.59 MiB | 6.19 MiB/s, done.
[..]
dev@vm:~$ du -hs linux
1,4G linux
Using the tar-Archive instead:
dev@vm:~$ wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.1.tar.xz
[..]
linux-5.11.1.tar.xz 100%[===================>] 112,17M 9,14MB/s in 13s
[..]
So a https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$gitver.tar.xz
would be optimal ;)
Pinned Comments
<deleted-account> commented on 2020-10-26 18:15 (UTC)
Tired of compiling? Use this binary repo instead! Add this at the end of /etc/pacman.conf :