Files
chromebrew/packages/ndctl.rb
Satadru Pramanik, DO, MPH, MEng 8a033e95cd replace asciidoctor with ruby_asciidoctor (#8011)
* replace asciidoctor with ruby_asciidoctor

* update deps
2023-02-28 10:56:45 -06:00

46 lines
1.5 KiB
Ruby

require 'package'
class Ndctl < Package
description 'Helper tools and libraries for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel'
homepage 'https://github.com/pmem/ndctl'
version '72.1'
license 'GPL-2.0'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/pmem/ndctl.git'
git_hashtag "v#{version}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ndctl/72.1_armv7l/ndctl-72.1-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ndctl/72.1_armv7l/ndctl-72.1-chromeos-armv7l.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ndctl/72.1_x86_64/ndctl-72.1-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'baade842dde6df21f38c6506d89d11b6c569d131c4c4a0bedf66992a952dfc1f',
armv7l: 'baade842dde6df21f38c6506d89d11b6c569d131c4c4a0bedf66992a952dfc1f',
x86_64: '6d1a0625c7c26687531cf8d63859bbe4bcdd44c5f1b623657491845c89a2a8bc'
})
depends_on 'ruby_asciidoctor' => :build
depends_on 'bash_completion' => :build
depends_on 'iniparser' => :build
depends_on 'jsonc' => :build
depends_on 'keyutils' => :build
depends_on 'libkmod' => :build
depends_on 'xmlto' => :build
def self.build
system './autogen.sh'
system 'filefix'
system "./configure #{CREW_OPTIONS} --without-systemd"
system 'make'
end
def self.check
system 'make check'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
end