Files
chromebrew/packages/aalib.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

48 lines
1.5 KiB
Ruby

require 'package'
class Aalib < Package
description 'AA means Ascii Art - the AAlib (ascii art GFX library), BB (audiovisual demonstration for your terminal), aview (image browser/animation player), AAvga (SVGAlib wrapper for AA-lib), ttyquake (text mode quake), aa3d (random dot stereogram generator)...'
homepage 'https://sourceforge.net/projects/aa-project/'
version '1.4p5-50'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://salsa.debian.org/debian/aalib.git'
git_hashtag "debian/#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '6922a2f976e1b20143edc66ae9db0dc7adf7642f00018fdff58abc20a3a1fad5',
armv7l: '6922a2f976e1b20143edc66ae9db0dc7adf7642f00018fdff58abc20a3a1fad5',
x86_64: 'c5817e248feb5caf3b2a3bf47d1fab23d2482646cf3eb13de713ccb99616d367'
})
depends_on 'glibc' # R
depends_on 'libbsd' # R
depends_on 'libmd' # R
depends_on 'libx11' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'slang' # R
depends_on 'xorg_proto' => :build
def self.patch
File.foreach 'debian/patches/series' do |patch|
system "patch -Np1 -i debian/patches/#{patch}" if File.file?(patch)
end
end
def self.build
system 'autoreconf -fiv'
system "./configure #{CREW_CONFIGURE_OPTIONS} \
--with-x \
--with-x11-driver \
--with-slang-driver"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end