mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 02:02:08 +01:00
61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=linux-headers
|
|
pkgver=5.19.5 # Follow the latest Linux stable
|
|
_kernver=${pkgver%.*}
|
|
pkgrel=0
|
|
pkgdesc="Linux system headers"
|
|
url="https://kernel.org/"
|
|
arch="noarch"
|
|
license="GPL-2.0-only"
|
|
makedepends="perl rsync"
|
|
options="!check !dbg !strip !tracedeps"
|
|
source="https://kernel.org/pub/linux/kernel/v5.x/linux-$_kernver.tar.xz
|
|
https://kernel.org/pub/linux/kernel/v5.x/patch-$pkgver.xz
|
|
revert-broken-uapi.patch
|
|
0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
include-uapi-linux-swab-Fix-potentially-missing-__always_inline.patch
|
|
0001-bpf-Add-btf-enum64-support.patch
|
|
"
|
|
# btf enum64 for libbpf 1.0.0 -- included in v6.0-rc1
|
|
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
prepare() {
|
|
if [ "$_kernver" != "$pkgver" ]; then
|
|
unxz -c < "$srcdir"/patch-$pkgver.xz | patch -p1
|
|
fi
|
|
default_prepare
|
|
}
|
|
|
|
package() {
|
|
local _carch=$CARCH
|
|
|
|
case "$_carch" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
mips*) _carch="mips" ;;
|
|
s390*) _carch="s390" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
riscv*) _carch="riscv" ;;
|
|
# not sure about this -- ppc64*) _carch="powerpc64" ;;
|
|
esac
|
|
|
|
mkdir -p "$pkgdir/usr"
|
|
make headers_install ARCH="$_carch" INSTALL_HDR_PATH="$pkgdir/usr"
|
|
|
|
find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \
|
|
rm -f {} \;
|
|
|
|
# provided by libdrm
|
|
rm -rf "$pkgdir"/usr/include/drm
|
|
}
|
|
|
|
sha512sums="
|
|
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623 linux-5.19.tar.xz
|
|
e3853ff4743603693f2a5c01bed9d10a86d59452703a465555ea5ad9eba98a8273c897465a6d12a9a7fd9963e2f7c0a89f70c34fad5c60d6a04557febe5e44e0 patch-5.19.5.xz
|
|
32597f2672d1ec365a936d15041a7cf219ef9353241d4a5c378244cf2fc155610443a19bbcd391c86099a0b08486c45e042ec7c90b0d04fe675c3ad0ffc36b53 revert-broken-uapi.patch
|
|
607c074d72aca88fea9ecdbd62198d8f7857daca75e5d027966e0a9997338d6ac8ce0a1e9114b19232b390751d05acca09e28b0cfad2a12d5942f5575a9f4684 0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
7cfa786144009c52d682e307bb512156e4812d7abe03b3fed99651a02d80567d47ee6f347f88d083c1b9805e0c09625fc3df08a8d0ae96b169d24eb5b83917b7 include-uapi-linux-swab-Fix-potentially-missing-__always_inline.patch
|
|
60ccb4541cf150bbd3e7df4eb79fc03bbf820bcc772564f52b4e78de71ec0b6f90f2007eb380a72f7ff629443e4a486ce593c2694249c2bd3cf70031c74fa5da 0001-bpf-Add-btf-enum64-support.patch
|
|
"
|