homebrew-core/Formula/linux-headers@5.15.rb

28 lines
723 B
Ruby

class LinuxHeadersAT515 < Formula
desc "Header files of the Linux kernel"
homepage "https://kernel.org/"
url "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.86.tar.gz"
sha256 "acd450838f720c39659aada8f06a3b4d8c237ab6147cad597e016205dab966e6"
license "GPL-2.0-only"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "65ac34deace6ddf03c403acd31f5ae72736450c67abfb77e9bbe2941e3785428"
end
depends_on :linux
def install
system "make", "headers"
cd "usr/include" do
Pathname.glob("**/*.h").each do |header|
(include/header.dirname).install header
end
end
end
test do
assert_match "KERNEL_VERSION", (include/"linux/version.h").read
end
end