Files
chromebrew/packages/gnuchess.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

34 lines
1005 B
Ruby

require 'package'
class Gnuchess < Package
description 'GNU Chess is a chess-playing program.'
homepage 'https://www.gnu.org/software/chess/'
version '6.2.9'
license 'GPL-3'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/chess/gnuchess-6.2.9.tar.gz'
source_sha256 'ddfcc20bdd756900a9ab6c42c7daf90a2893bf7f19ce347420ce36baebc41890'
binary_compression 'tpxz'
binary_sha256({
aarch64: '04cbe6c7a1175da4efec1fbf4e2e804a565910a3d9a858bb5d642ecda39c804f',
armv7l: '04cbe6c7a1175da4efec1fbf4e2e804a565910a3d9a858bb5d642ecda39c804f',
i686: '8741213f6f4ae25654c7a4df3c5c17566101dffcd8f932eda0048415996b7ef8',
x86_64: 'fcf26dedf74b36d4b470b89f6accacafb88675b85db8e76862c179560ef7163d'
})
def self.build
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS} \
--with-readline"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.check
system 'make', 'check'
end
end