Files
chromebrew/packages/scrollz.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

36 lines
1.2 KiB
Ruby

require 'package'
class Scrollz < Package
description 'ScrollZ is an advanced IRC client based on ircII.'
homepage 'http://www.scrollz.info/'
version '2.3-1'
license 'BSD'
compatibility 'all'
source_url 'http://www.scrollz.info/download/ScrollZ-2.3.tar.gz'
source_sha256 '22535bcc54ad752107ab181775d90d9cf1b37648f500d627f428388a9d3710e6'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'a1589b1e4fd8ff13d2ab43196a169d8059763a6f2a5211197fc1531b8c9e5a31',
armv7l: 'a1589b1e4fd8ff13d2ab43196a169d8059763a6f2a5211197fc1531b8c9e5a31',
i686: 'c627771e1fefb36d8f5b07b603c7ee5ffeb740148275926c03ae6948172cfe7d',
x86_64: 'b5ec0e2e979a79e9b292d221b4875ce79364f881504bc1ecbce503993b728f73'
})
depends_on 'buildessential'
depends_on 'ncurses'
def self.build
# Scrollz prefers termcap over ncurses, but scrollz doesn't work our termcap
# because of link errors. This configure option prohibits choosing termcap.
system "CFLAGS=-I#{CREW_PREFIX}/include/ncurses " \
"./configure --prefix=#{CREW_PREFIX} " \
'ac_cv_header_termcap_h=no ac_cv_lib_termcap_tgetent=no'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end