From 1900c2e71e5d87764bc25f478e38ad8020770d97 Mon Sep 17 00:00:00 2001 From: James Larrowe Date: Tue, 3 Sep 2019 21:24:23 -0400 Subject: [PATCH] Add wl_clipboard package (#3446) This package provides native integration with the Chrome OS clipboard via. the built-in Wayland server. --- packages/wl_clipboard.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/wl_clipboard.rb diff --git a/packages/wl_clipboard.rb b/packages/wl_clipboard.rb new file mode 100644 index 0000000000..4ba5e81eca --- /dev/null +++ b/packages/wl_clipboard.rb @@ -0,0 +1,30 @@ +require 'package' + +class Wl_clipboard < Package + description 'Command-line copy/paste utilities for Wayland' + homepage 'https://github.com/bugaevc/wl-clipboard.git' + version 'c0109' # Yes, I know, not the greatest version number, + # but it has fixes that 1.0.0 doesn't have yet. + source_url 'https://github.com/bugaevc/wl-clipboard/archive/c0109.tar.gz' + source_sha256 '3c7815986bb43c49912e1b64fb447bc31a80aa1326471dd575123ed6cd86e6be' + + binary_url ({ + }) + binary_sha256 ({ + }) + + depends_on 'wayland_protocols' # xdg-shell support, depends on wayland + depends_on 'xdg_utils' # content type inference in wl-copy + + def self.build + system 'meson', 'build' + system 'ninja', '-C', 'build' + end + + def self.install + # Meson and Ninja sadly do not support a command-line + # argument for this like Make does + ENV['DESTDIR'] = CREW_DEST_DIR + system 'ninja', '-C', 'build', 'install' + end +end