mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
37 lines
1.2 KiB
Ruby
37 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Lesspipe < Package
|
|
description 'Input filter for the pager less'
|
|
homepage 'https://www-zeuthen.desy.de/~friebel/unix/lesspipe.html'
|
|
version '2.16'
|
|
license 'GPL-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/wofr06/lesspipe.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '39221026f20d872b11c55607553c247f9c42b241eb42297b7c88ec6c5cbe13a9',
|
|
armv7l: '39221026f20d872b11c55607553c247f9c42b241eb42297b7c88ec6c5cbe13a9',
|
|
i686: '35fd12dd7d52731e6fe8c0673e75385ed4b4d27a75bad604d7856ad48a0d3655',
|
|
x86_64: '98809fc06f84b97172e0177af0aae5fe0cf0e83990afb01cb744d4b2fab0ded5'
|
|
})
|
|
|
|
depends_on 'less'
|
|
|
|
print_source_bashrc
|
|
|
|
def self.build
|
|
File.write '10-lesspipe', <<~EOF
|
|
LESSOPEN="|#{CREW_PREFIX}/bin/lesspipe.sh %s"
|
|
EOF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.install %w[lesspipe.sh code2color archive_color vimcolor sxw2txt lesscomplete],
|
|
"#{CREW_DEST_PREFIX}/bin", mode: 0o755
|
|
FileUtils.install '10-lesspipe', "#{CREW_DEST_PREFIX}/etc/env.d/10-lesspipe", mode: 0o644
|
|
FileUtils.install 'less_completion', "#{CREW_DEST_PREFIX}/etc/bash.d/less_completion", mode: 0o644
|
|
end
|
|
end
|