6.5.4.arch1-1
This commit is contained in:
parent
f4548d9212
commit
78110d314c
37
PKGBUILD
37
PKGBUILD
@ -1,11 +1,10 @@
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
pkgbase=linux
|
||||
pkgver=6.5.3.arch1
|
||||
pkgver=6.5.4.arch1
|
||||
pkgrel=1
|
||||
pkgdesc='Linux'
|
||||
_srctag=v${pkgver%.*}-${pkgver##*.}
|
||||
url="https://github.com/archlinux/linux/commits/$_srctag"
|
||||
url='https://github.com/archlinux/linux'
|
||||
arch=(x86_64)
|
||||
license=(GPL2)
|
||||
makedepends=(
|
||||
@ -27,43 +26,40 @@ makedepends=(
|
||||
texlive-latexextra
|
||||
)
|
||||
options=('!strip')
|
||||
_srcname=archlinux-linux
|
||||
_srcname=linux-${pkgver%.*}
|
||||
_srctag=v${pkgver%.*}-${pkgver##*.}
|
||||
source=(
|
||||
"$_srcname::git+https://github.com/archlinux/linux?signed#tag=$_srctag"
|
||||
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/$_srcname.tar.{xz,sign}
|
||||
$url/releases/download/$_srctag/linux-$_srctag.patch.zst{,.sig}
|
||||
config # the main kernel config file
|
||||
)
|
||||
validpgpkeys=(
|
||||
ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
|
||||
647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman
|
||||
A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig)
|
||||
C7E7849466FE2358343588377258734B41C31549 # David Runge <dvzrv@archlinux.org>
|
||||
)
|
||||
b2sums=('SKIP'
|
||||
b2sums=('99df210ee8f244de9059c9699648f7aad8e520030ce14e61971ba95365635e698e7c66074aa3f5c57bd75f1058e1c1dbaecea66d0b381202f239b3a04a396371'
|
||||
'SKIP'
|
||||
'4213ac8402b71d5205abb18ac9a340470dba610ee5a051af20ed3ef367e2d3a44eba2ec007e950905df3e00f457f3b9eb7f44d001b78955b9c82d019d9d92d8f'
|
||||
'SKIP'
|
||||
'9a1770eed7e306ddd532b1df9d62c52b4f6c938d147473bed6ba92a4139654f313d7033bb6bc509f4054fa757acf33a8d73b6f36fed2a134f72d1724bf2db717')
|
||||
|
||||
export KBUILD_BUILD_HOST=archlinux
|
||||
export KBUILD_BUILD_USER=$pkgbase
|
||||
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
|
||||
|
||||
_make() {
|
||||
test -s version
|
||||
make KERNELRELEASE="$(<version)" "$@"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd $_srcname
|
||||
|
||||
echo "Setting version..."
|
||||
echo "-$pkgrel" > localversion.10-pkgrel
|
||||
echo "${pkgbase#linux}" > localversion.20-pkgname
|
||||
make defconfig
|
||||
make -s kernelrelease > version
|
||||
make mrproper
|
||||
|
||||
local src
|
||||
for src in "${source[@]}"; do
|
||||
src="${src%%::*}"
|
||||
src="${src##*/}"
|
||||
src="${src%.zst}"
|
||||
[[ $src = *.patch ]] || continue
|
||||
echo "Applying patch $src..."
|
||||
patch -Np1 < "../$src"
|
||||
@ -71,16 +67,17 @@ prepare() {
|
||||
|
||||
echo "Setting config..."
|
||||
cp ../config .config
|
||||
_make olddefconfig
|
||||
make olddefconfig
|
||||
diff -u ../config .config || :
|
||||
|
||||
make -s kernelrelease > version
|
||||
echo "Prepared $pkgbase version $(<version)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_srcname
|
||||
_make all
|
||||
_make htmldocs
|
||||
make all
|
||||
make htmldocs
|
||||
}
|
||||
|
||||
_package() {
|
||||
@ -110,13 +107,13 @@ _package() {
|
||||
echo "Installing boot image..."
|
||||
# systemd expects to find the kernel here to allow hibernation
|
||||
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
|
||||
install -Dm644 "$(_make -s image_name)" "$modulesdir/vmlinuz"
|
||||
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
|
||||
|
||||
# Used by mkinitcpio to name the kernel
|
||||
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
|
||||
|
||||
echo "Installing modules..."
|
||||
ZSTD_CLEVEL=19 _make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
|
||||
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
|
||||
DEPMOD=/doesnt/exist modules_install # Suppress depmod
|
||||
|
||||
# remove build and source links
|
||||
|
Loading…
Reference in New Issue
Block a user