Files
chromebrew/packages/libseccomp.rb
chromebrew-actions[bot] 0f3e610172 updater-libseccomp-2.6.0 — libseccomp → 2.6.0 (#12932)
* Add unbuilt libseccomp to updater-libseccomp-2.6.0

* updater-libseccomp-2.6.0: Build Run on linux/386.

* updater-libseccomp-2.6.0: Build Run on linux/amd64.

* updater-libseccomp-2.6.0: Build Run on linux/arm/v7.

* updater-libseccomp-2.6.0: Package File Update Run on linux/386 container.

---------

Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
2025-09-25 18:34:02 +00:00

34 lines
1.1 KiB
Ruby

require 'package'
class Libseccomp < Package
description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.'
homepage 'https://github.com/seccomp/libseccomp'
version '2.6.0'
license 'LGPL-2.1'
compatibility 'all'
source_url "https://github.com/seccomp/libseccomp/archive/v#{version}.tar.gz"
source_sha256 '0889a8da98e37f86019c90789fd4ff7eda6e1ceb9ef07d4c51c67aeb50a77860'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'f2423dd691c12162eb08ee628a0167b7fa88ad3d9ff89dcbef0e670ef92e5eec',
armv7l: 'f2423dd691c12162eb08ee628a0167b7fa88ad3d9ff89dcbef0e670ef92e5eec',
i686: '168ea8232d31e954477b08eabcd0f08b563f8151983906b38cbe6ce243b36806',
x86_64: 'a5cb3ebe2ae90e90d090596d5fb37178a8a13e528fe47917608ad004a6a38f91'
})
depends_on 'glibc' # R
depends_on 'gperf' => :build
def self.build
system './autogen.sh'
system "./configure \
#{CREW_CONFIGURE_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end