mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* 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)
51 lines
1.5 KiB
Ruby
51 lines
1.5 KiB
Ruby
# Adapted from Arch Linux wlroots PKGBUILD at:
|
|
# https://github.com/archlinux/svntogit-community/raw/packages/wlroots/trunk/PKGBUILD
|
|
|
|
require 'package'
|
|
|
|
class Wlroots < Package
|
|
description 'Modular Wayland compositor library'
|
|
homepage 'https://gitlab.freedesktop.org/wlroots/wlroots'
|
|
version '0.16.1'
|
|
license 'MIT'
|
|
compatibility 'aarch64, armv7l, x86_64'
|
|
source_url 'https://gitlab.freedesktop.org/wlroots/wlroots.git'
|
|
git_hashtag version
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '0722ae885c1a247b03319bfb9092d9bd429209fe7b4cec3ff26276904d7b7e34',
|
|
armv7l: '0722ae885c1a247b03319bfb9092d9bd429209fe7b4cec3ff26276904d7b7e34',
|
|
x86_64: 'e06e99287393b51a5cfde4adf5fc81eaf22cb67d7aae762cd864d907c22c6209'
|
|
})
|
|
|
|
depends_on 'eudev' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'hwdata' => :build
|
|
depends_on 'libdrm' # R
|
|
depends_on 'libglvnd' # R
|
|
depends_on 'libxcb' # R
|
|
depends_on 'libxkbcommon' # R
|
|
depends_on 'mesa' # R
|
|
depends_on 'pixman' # R
|
|
depends_on 'seatd' # R
|
|
depends_on 'vulkan_headers' => :build
|
|
depends_on 'vulkan_icd_loader' # R
|
|
depends_on 'wayland' # R
|
|
depends_on 'xcb_util_wm' # R
|
|
depends_on 'xwayland' # L
|
|
|
|
def self.build
|
|
system "meson setup #{CREW_MESON_OPTIONS} \
|
|
-Dxwayland=enabled \
|
|
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
|