mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-05 22:02:22 +02:00
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
maintainer="Achill Gilgenast <achill@achill.org>"
|
|
pkgname=linux-headers
|
|
pkgver=6.18.9
|
|
# NOTE: Follows Greg's stable Linux releases, see kernel.org
|
|
_kernver=${pkgver%.*}
|
|
pkgrel=0
|
|
pkgdesc="Linux system headers"
|
|
url="https://kernel.org/"
|
|
arch="all" # Headers are architecture specific
|
|
license="GPL-2.0-only"
|
|
makedepends="perl"
|
|
options="!check !dbg !strip !tracedeps !archcheck"
|
|
source="https://kernel.org/pub/linux/kernel/v6.x/linux-$_kernver.tar.xz
|
|
revert-broken-uapi.patch
|
|
0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
"
|
|
if [ "${pkgver%.0}" = "$pkgver" ]; then
|
|
source="
|
|
patch-$pkgver.patch.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/patch-$pkgver.xz
|
|
$source
|
|
"
|
|
fi
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
_carch="$CARCH"
|
|
case "$_carch" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
mips*) _carch="mips" ;;
|
|
s390*) _carch="s390" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
riscv*) _carch="riscv" ;;
|
|
loongarch*) _carch="loongarch" ;;
|
|
esac
|
|
|
|
build() {
|
|
make headers ARCH="$_carch"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/
|
|
cp -a usr/include/ "$pkgdir"/usr/include/
|
|
|
|
msg "purging non header files.."
|
|
find "$pkgdir"/usr/include/ ! -iname "*.h" -type f -exec rm -v {} \+
|
|
|
|
# provided by libdrm
|
|
rm -rf "$pkgdir"/usr/include/drm
|
|
}
|
|
|
|
sha512sums="
|
|
fd3822bec8e654b49d387eb94d9d4ca89c704d3ab52be2025c8c28e7cf648dc94cd9f1231227dd71abbc64ef1ace086aec7339691c4afd5234cba1e448ded9cc patch-6.18.9.patch.xz
|
|
88599ffdec96d150c1feb9b261ba93bb0301a9d0e1ad6bef7aeab1f5372cbfc57d8b43c7e902bd8f76921d1dbd8189663c142ea869e51d0e2b483b150ee00fe0 linux-6.18.tar.xz
|
|
c1fc9a8a0b42dacad51ceb13785f54dfce89369fe082e6457b80a1f75b02704415d397b5df48ca3fdf361ec8c1b72c196b5033bca0325e39d026bcc357d89452 revert-broken-uapi.patch
|
|
607c074d72aca88fea9ecdbd62198d8f7857daca75e5d027966e0a9997338d6ac8ce0a1e9114b19232b390751d05acca09e28b0cfad2a12d5942f5575a9f4684 0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
"
|