Files
chromebrew/packages/libevdev.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

35 lines
1.1 KiB
Ruby

require 'package'
class Libevdev < Package
description 'libevdev is a wrapper library for evdev devices.'
homepage 'https://www.freedesktop.org/wiki/Software/libevdev'
version '1.12.1'
license 'MIT'
compatibility 'all'
source_url 'https://www.freedesktop.org/software/libevdev/libevdev-1.12.1.tar.xz'
source_sha256 '1dbba41bc516d3ca7abc0da5b862efe3ea8a7018fa6e9b97ce9d39401b22426c'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'ef21c213c561863ccb9cea8a5b88501fdec31c094af3238bac482b3db7b4b053',
armv7l: 'ef21c213c561863ccb9cea8a5b88501fdec31c094af3238bac482b3db7b4b053',
i686: 'c950e9e171bb65513f22ed76a1195caa4706cde60397f4ba0e1d0c213e9edd99',
x86_64: '175b179c49706e118bdb1da0dfa4d216271396eecf3bd289f0db6fc11f631a64'
})
depends_on 'check' => :build
depends_on 'doxygen' => :build
depends_on 'python3' => :build
def self.build
system "meson setup #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure --no-pager builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end