Commit fe757c16 authored by supechicken's avatar supechicken Committed by GitHub

Update libxkbcommon.rb (#5024)

Co-authored-by: default avatarsupechicken666 <68530202+supechicken666@users.noreply.github.com>
parent a420a04e
......@@ -2,44 +2,29 @@ require 'package'
class Libxkbcommon < Package
description 'Keymap handling library for toolkits and window systems'
homepage 'http:s//xkbcommon.org'
version '0.10.0'
homepage 'https://xkbcommon.org'
@_ver = '1.0.3'
version @_ver
compatibility 'all'
source_url 'https://xkbcommon.org/download/libxkbcommon-0.10.0.tar.xz'
source_sha256 '57c3630cdc38fb4734cd57fa349e92244f5ae3862813e533cedbd86721a0b6f2'
source_url "https://xkbcommon.org/download/libxkbcommon-#{@_ver}.tar.xz"
source_sha256 'a2202f851e072b84e64a395212cbd976ee18a8ee602008b0bad02a13247dbc52'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxkbcommon-0.10.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxkbcommon-0.10.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxkbcommon-0.10.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxkbcommon-0.10.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '342916012da771abfb4d99034b6f07d11d098e53e250976f173a2f516e5b4f99',
armv7l: '342916012da771abfb4d99034b6f07d11d098e53e250976f173a2f516e5b4f99',
i686: '30520eda6f63031b9909870502cad6ea874e2a2858a7c0e9130c2318a81b1bc4',
x86_64: 'b9ca070f8a5cc0a171f4ae6552e56eb4edf80826efb850d514bd523524da9643',
})
depends_on 'bison'
depends_on 'wayland_protocols'
depends_on 'xkeyboard_config'
def self.build
system "pip3 install --prefix #{CREW_PREFIX} -I meson==0.51.1"
system 'meson',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'_build'
system 'ninja -v -C _build'
system "meson \
#{CREW_MESON_LTO_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.check
system 'ninja -C _build test'
system 'pip3 uninstall meson -y'
system 'ninja -C builddir test'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment