Files
chromebrew/packages/xterm.rb
chromebrew-actions[bot] 38439537ab gparted -> 1.8.1 in updater-gparted-1.8.1 — gparted: 1.8.0 → 1.8.1 (#15055)
* gparted -> 1.8.1 in updater-gparted-1.8.1

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* updater-gparted-1.8.1: Package File Update Run on linux/arm/v7 container.

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* Cleanup gparted.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update dependencies to use :executable instead of :executable_only

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2026-03-19 00:13:29 +00:00

88 lines
2.6 KiB
Ruby

require 'package'
class Xterm < Package
description 'The xterm program is a terminal emulator for the X Window System.'
homepage 'https://invisible-island.net/xterm/'
version '407'
license 'MIT'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://github.com/ThomasDickey/xterm-snapshots.git'
git_hashtag "xterm-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'e51a11c5222c7eef82730162b8a417c304fc4110c402806c40ee9c2801d5b065',
armv7l: 'e51a11c5222c7eef82730162b8a417c304fc4110c402806c40ee9c2801d5b065',
x86_64: '70ee2c01f0528f6ac62972a38bab18a8f8b1ab3e7b1f18cce48c0e4879c9a11d'
})
depends_on 'fontconfig' => :executable
depends_on 'freetype' => :executable
depends_on 'glibc' => :executable
depends_on 'harfbuzz' => :executable
depends_on 'libice' => :executable
depends_on 'libutempter' => :executable
depends_on 'libx11' => :executable
depends_on 'libxaw' => :executable
depends_on 'libxext' => :executable
depends_on 'libxft' => :executable
depends_on 'libxinerama' => :executable
depends_on 'libxmu' => :executable
depends_on 'libxpm' => :executable
depends_on 'libxt' => :executable
depends_on 'luit' => :build
depends_on 'ncurses' => :executable
depends_on 'pcre' => :executable
depends_on 'sommelier' => :logical
no_env_options
def self.patch
system "sed -i '/^LDFLAGS/ s/$/ -DUSE_TERMINFO=1 -ltinfo/' Makefile.in"
end
def self.build
system "./configure #{CREW_CONFIGURE_OPTIONS} \
--disable-imake \
--enable-16bit-chars \
--enable-256-color \
--enable-88-color \
--enable-ansi-color \
--enable-broken-osc \
--enable-broken-st \
--enable-dabbrev \
--enable-dec-locator \
--enable-double-buffer \
--enable-doublechars \
--enable-exec-xterm \
--enable-freetype \
--enable-i18n \
--enable-load-vt-fonts \
--enable-logging \
--enable-luit \
--enable-mini-luit \
--enable-narrowproto \
--enable-readline-mouse \
--enable-regis-graphics \
--enable-sixel-graphics \
--enable-tcap-query \
--enable-toolbar \
--enable-warnings \
--enable-wide-chars \
--with-app-defaults=#{CREW_PREFIX}/share/X11/app-defaults/ \
--with-pcre \
--with-pkg-config \
--with-tty-group=tty \
--with-utempter \
--with-x \
--with-xinerama \
--with-xpm=#{CREW_PREFIX}"
system 'make'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
system "make install-ti DESTDIR=#{CREW_DEST_DIR}"
end
end