mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
72 lines
2.5 KiB
Ruby
72 lines
2.5 KiB
Ruby
require 'package'
|
|
|
|
class Asciinema < Package
|
|
description 'Terminal session recorder'
|
|
homepage 'https://asciinema.org/'
|
|
version '2.0.2-2'
|
|
license 'GPL-3+'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/asciinema/asciinema/archive/v2.0.2.tar.gz'
|
|
source_sha256 '2578a1b5611e5375771ef6582a6533ef8d40cdbed1ba1c87786fd23af625ab68'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asciinema/2.0.2-1_armv7l/asciinema-2.0.2-1-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asciinema/2.0.2-1_armv7l/asciinema-2.0.2-1-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asciinema/2.0.2-1_i686/asciinema-2.0.2-1-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asciinema/2.0.2-2_x86_64/asciinema-2.0.2-2-chromeos-x86_64.tpxz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '5fddd233f9f093935c23574dc1ce6247103352e845408375fa537fd2f56675ec',
|
|
armv7l: '5fddd233f9f093935c23574dc1ce6247103352e845408375fa537fd2f56675ec',
|
|
i686: '82f850655844133b11a251428021f9d92904b6c733f68cd3f6f827987fc072ee',
|
|
x86_64: 'a94b73de95817df65ede7ba0e58c71547cf7eb6a326b9707dd94a29a3fd73aab'
|
|
})
|
|
|
|
depends_on 'xdg_base'
|
|
depends_on 'py3_setuptools' => :build
|
|
|
|
def self.build
|
|
system "echo '[api]
|
|
|
|
; API server URL, default: https://asciinema.org
|
|
; If you run your own instance of asciinema-server then set its address here
|
|
; It can also be overridden by setting ASCIINEMA_API_URL environment variable
|
|
;url = https://asciinema.example.com
|
|
|
|
[record]
|
|
|
|
; Command to record, default: \$SHELL
|
|
command = /bin/bash -l
|
|
|
|
; Enable stdin (keyboard) recording, default: no
|
|
stdin = yes
|
|
|
|
; List of environment variables to capture, default: SHELL,TERM
|
|
env = SHELL,TERM,USER
|
|
|
|
; Limit recorded terminal inactivity to max n seconds, default: off
|
|
idle_time_limit = 2
|
|
|
|
; Answer \"yes\" to all interactive prompts, default: no
|
|
yes = true
|
|
|
|
; Be quiet, suppress all notices/warnings, default: no
|
|
quiet = true
|
|
|
|
[play]
|
|
|
|
; Playback speed (can be fractional), default: 1
|
|
speed = 2
|
|
|
|
; Limit replayed terminal inactivity to max n seconds, default: off
|
|
idle_time_limit = 1' > config"
|
|
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
|
|
end
|
|
|
|
def self.install
|
|
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
|
|
system "install -Dm644 config #{CREW_DEST_HOME}/.config/asciinema/config"
|
|
system "touch #{CREW_DEST_HOME}/.config/asciinema/install-id"
|
|
end
|
|
end
|