28 lines
723 B
Ruby
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.83.tar.gz"
|
|
sha256 "546369aca318ec9136f11f9e9c2de066176f5413ea6c5229111a7d99800b8d68"
|
|
license "GPL-2.0-only"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "a0679ca64e4ef228ef1a1dc931deecbe2de9fbd809f93474ae4bcef87f6e32fe"
|
|
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
|