mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
38 lines
1.5 KiB
Ruby
38 lines
1.5 KiB
Ruby
require 'package'
|
|
|
|
class Xmessage < Package
|
|
description 'Xmessage displays a message or query in a window.'
|
|
homepage 'https://www.x.org/'
|
|
version '1.0.5'
|
|
license 'MIT-with-advertising'
|
|
compatibility 'all'
|
|
source_url 'https://www.x.org/releases/individual/app/xmessage-1.0.5.tar.bz2'
|
|
source_sha256 '373dfb81e7a6f06d3d22485a12fcde6e255d58c6dee1bbaeb00c7d0caa9b2029'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xmessage/1.0.5_armv7l/xmessage-1.0.5-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xmessage/1.0.5_armv7l/xmessage-1.0.5-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xmessage/1.0.5_i686/xmessage-1.0.5-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xmessage/1.0.5_x86_64/xmessage-1.0.5-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '6df6c32406b06cc78f207c28b3a8cec0c41fe98a7566bf7d73e53553c55a4ccc',
|
|
armv7l: '6df6c32406b06cc78f207c28b3a8cec0c41fe98a7566bf7d73e53553c55a4ccc',
|
|
i686: '9af874eed48fcad769c3eea3382448c26958b101af58f0708eefab8454d3eeed',
|
|
x86_64: '1ccd1102b9debf4c9a7b7ca877b2010622ac013cc551fb0d7d9b3a772355ac80'
|
|
})
|
|
|
|
depends_on 'xorg_lib'
|
|
|
|
def self.build
|
|
system './configure',
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--libdir=#{CREW_LIB_PREFIX}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|