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

23 lines
674 B
Ruby

class LinuxHeadersAT44 < Formula
desc "Header files of the Linux kernel"
homepage "https://kernel.org/"
url "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.80.tar.gz"
sha256 "291d844619b5e7c43bd5aa0b2c286274fc5ffe31494ba475f167a21157e88186"
license "GPL-2.0-only"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "b3821c05a871c143c38d75b7494380f8f7a5725090528d849d2c066956a93344"
end
depends_on :linux
def install
system "make", "headers_install", "INSTALL_HDR_PATH=#{prefix}"
rm Dir[prefix/"**/{.install,..install.cmd}"]
end
test do
assert_match "KERNEL_VERSION", File.read(include/"linux/version.h")
end
end