mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Add unbuilt firefox to updater-firefox-147.0.2 * Adjust firefox deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust firefox deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Change all sommelier deps to => :logical deps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix circular dependencies of docbook_xml and docbook_xml412. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Cleanup docbook circular deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix elogind, ffmpeg circular deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Cleanup more circular deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Mark packages from successful builds as automatically buildable. * updater-firefox-147.0.2: Package File Update Run on linux/386 container. * Add filelists and updated packages. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix gstreamer deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Handle missing dlist, update pipewire filelist Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add rsu_client filelist Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Suggested changes. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust elogind deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust docbook heredocs. 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: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
59 lines
1.6 KiB
Ruby
59 lines
1.6 KiB
Ruby
require 'package'
|
|
|
|
class Dosbox < Package
|
|
description 'DOSBox is a DOS-emulator that uses the SDL-library'
|
|
homepage 'https://www.dosbox.com/'
|
|
version '0.74-3'
|
|
license 'GPL-2'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://downloads.sourceforge.net/project/dosbox/dosbox/0.74-3/dosbox-0.74-3.tar.gz'
|
|
source_sha256 'c0d13dd7ed2ed363b68de615475781e891cd582e8162b5c3669137502222260a'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '4d63eeba4d2e93696ff90cf61f806ea64b86552a7739651a6b717427e9ebe94f',
|
|
armv7l: '4d63eeba4d2e93696ff90cf61f806ea64b86552a7739651a6b717427e9ebe94f',
|
|
i686: 'ff371f1229c13dd11e11bf052c22f556373bf3d2c5eac1c12df8116a2b0bbed3',
|
|
x86_64: '1e45f3a2ef42431b06cc98f4c3769f8f1ce65094d71b0a9ff871eaabb6f22e86'
|
|
})
|
|
|
|
depends_on 'alsa_lib' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'libglvnd' # R
|
|
depends_on 'libpng'
|
|
depends_on 'libsdl'
|
|
depends_on 'libx11' # R
|
|
depends_on 'sommelier' => :logical
|
|
depends_on 'zlib' # R
|
|
|
|
def self.build
|
|
system "./configure #{CREW_CONFIGURE_OPTIONS}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
def self.postinstall
|
|
puts
|
|
puts "Type 'dosbox' to get started.".lightblue
|
|
puts
|
|
end
|
|
|
|
def self.postremove
|
|
print 'Would you like to remove the config directory? [y/N] '
|
|
response = $stdin.gets.chomp.downcase
|
|
config_dir = "#{HOME}/.dosbox"
|
|
if Dir.exist? config_dir
|
|
case response
|
|
when 'y', 'yes'
|
|
FileUtils.rm_rf config_dir
|
|
puts "#{config_dir} removed.".lightred
|
|
else
|
|
puts "#{config_dir} saved.".lightgreen
|
|
end
|
|
end
|
|
end
|
|
end
|