87 lines
1.7 KiB
Plaintext
87 lines
1.7 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
pkgname=linux-headers
|
|
majorver=6
|
|
minorver=4
|
|
patchver=6
|
|
|
|
_patches=""
|
|
|
|
pkgver="$majorver.$minorver"
|
|
pkgrel=0
|
|
if [ "$patchver" != 0 ]; then
|
|
_patches="
|
|
$_patches
|
|
linux-$majorver.$minorver.$patchver.patch.xz::https://cdn.kernel.org/pub/linux/kernel/v$majorver.x/patch-$majorver.$minorver.$patchver.xz
|
|
"
|
|
pkgver="$pkgver.$patchver"
|
|
fi
|
|
|
|
_kbdir="linux-$majorver.$minorver"
|
|
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v$majorver.x/linux-$majorver.$minorver.tar.gz
|
|
$_patches
|
|
$_configs
|
|
"
|
|
|
|
_kabi= _klocalver= _kconfig= _kbdmain= _kbddev= _kflavour=
|
|
_kdir_src="$srcdir/$_kbdir"
|
|
|
|
arch="noarch"
|
|
_depends_dev="
|
|
perl
|
|
gmp-dev
|
|
elfutils-dev
|
|
bash
|
|
flex
|
|
bison
|
|
"
|
|
makedepends="
|
|
$_depends_dev
|
|
sed
|
|
installkernel
|
|
bc
|
|
openssl-dev
|
|
diffutils
|
|
findutils
|
|
rsync
|
|
"
|
|
|
|
pkgdesc="Linux Kernel - Headers"
|
|
url="https://www.kernel.org"
|
|
license="GPL-2.0"
|
|
options="!strip"
|
|
builddir="$_kdir_src"
|
|
|
|
_carch=${CARCH} # abuild to kernel arch mapping
|
|
case "$_carch" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
mips*) _carch="mips" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
s390*) _carch="s390" ;;
|
|
esac
|
|
|
|
package() {
|
|
|
|
local _outdir="$pkgdir/usr"
|
|
mkdir -p "$_outdir"
|
|
|
|
cd "$_kdir_src"
|
|
make headers_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_HDR_PATH="$_outdir"
|
|
|
|
rm -f **/.install **/install.cmd
|
|
|
|
rm -rf "$_outdir/include/drm" # provided by libdrm-dev
|
|
}
|
|
|
|
sha512sums="
|
|
83a20d86306e91df48a65b30f7b0a608aa9e6a3bd023f2c680c749af0027d58a851775ff01bf3877098aac7375b70ec75ef37054b3094babb697d3f8a5e10035 linux-6.4.tar.gz
|
|
a5b87b55edce088db14924978acd88fae4150ce9a061f3ba7491e7d3b0fc0b263dcd88792a1ada01ea7cf53f707221ea29745a19bdc6e6b7888dac2e8bb26507 linux-6.4.6.patch.xz
|
|
"
|