You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
985 B
41 lines
985 B
#!/bin/bash
|
|
|
|
pkgname=(linux-headers)
|
|
pkgver=5.18.2
|
|
pkgrel=1
|
|
pkgdesc='System kernel headers'
|
|
arch=(x86_64)
|
|
url='http://www.kernel.org'
|
|
license=(GPL2)
|
|
depends=()
|
|
makedepends=(bison flex perl python3)
|
|
options=()
|
|
source=(
|
|
"https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.xz"
|
|
Config
|
|
)
|
|
|
|
sha256sums=(
|
|
83d14126c660186a7a1774a4a5c29d38e170fa5e52cfd2d08fd344dcf1f57d22
|
|
fb5801b7c4f692ac44589ad2f549e1b825a66517fec18e007d4751b2e776ddd5
|
|
)
|
|
|
|
build() {
|
|
cd_unpacked_src
|
|
sed -i \
|
|
-e "/rsync/s@rsync@find usr/include -not -type d -name '*.h' | cpio -dump --quiet \$\(INSTALL_HDR_PATH\); true@" \
|
|
-e '/^CC/s@gcc@cc@g' \
|
|
-e '/^HOSTCC/s@gcc@cc@g' Makefile
|
|
make LLVM=1 LLVM_IAS=1 mrproper
|
|
cp "${srcdir}/Config" .config
|
|
make LLVM=1 LLVM_IAS=1
|
|
}
|
|
|
|
package() {
|
|
groups=(build-base)
|
|
cd_unpacked_src
|
|
make LLVM=1 LLVM_IAS=1 INSTALL_HDR_PATH=dest HOSTCFLAGS="-D_GNU_SOURCE" headers_install
|
|
set -o pipefail
|
|
find usr -not -type
|
|
}
|