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

43 lines
1.1 KiB
Ruby

require 'package'
class Dosbox_x < Package
description 'An x86 emulator with DOS.'
homepage 'https://dosbox-x.com/'
version '0.83.1'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-v0.83.1.tar.gz'
source_sha256 '222c6c4e2ec15bfab0e327b9ba4af92a3fcdd0ff76f1917529a11503ab4a2833'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '839c4fef89a682fd9bc7bc761b42a112b7bf9e8ab6e33febe37ca3a80ef58aaa',
armv7l: '839c4fef89a682fd9bc7bc761b42a112b7bf9e8ab6e33febe37ca3a80ef58aaa',
x86_64: '28d8a38df1329b5059e81f84a37eafc155bfff5445bf3ded2eed8bc92e8d25b6'
})
depends_on 'ffmpeg'
depends_on 'libglu'
depends_on 'libpng'
depends_on 'libsdl'
def self.patch
system 'filefix'
system "sed -i 's,--prefix=/usr,#{CREW_CONFIGURE_OPTIONS},' build"
end
def self.build
system './build'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
puts
puts "Type 'dosbox-x' to get started.".lightblue
puts
end
end