Commit 405567d9 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Add aqemu package (#3346)

Add libvncserver dependency package

Add postinstall message

Add pre-built binaries
parent 3e8771a6
require 'package'
class Aqemu < Package
description 'AQEMU is a GUI for virtual machines using QEMU as the backend.'
homepage 'https://sourceforge.net/projects/aqemu/'
version '0.9.2'
source_url 'https://downloads.sourceforge.net/project/aqemu/aqemu/0.9.2/aqemu-0.9.2.tar.gz'
source_sha256 'e3d54de00ebdce3754f97f7e0e7cce8cebb588e8ce6bc249401cc909281b08de'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/aqemu-0.9.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/aqemu-0.9.2-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/aqemu-0.9.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '9b660d4e0ed420f0a74c5df33e7221042fc87764d9f8e70856a1aa31d14ea71c',
armv7l: '9b660d4e0ed420f0a74c5df33e7221042fc87764d9f8e70856a1aa31d14ea71c',
x86_64: '99544f65ac97a48e5f7e4c25eb26113db8301b25a5bbdd41d2fbfe52a5bdcd26',
})
depends_on 'libvncserver'
depends_on 'qemu'
depends_on 'qtbase'
depends_on 'xdg_base'
depends_on 'sommelier'
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system 'cmake',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
"-DCMAKE_BUILD_TYPE=Release",
"-DMAN_PAGE_COMPRESSOR=gzip",
'..'
system 'make'
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
def self.postinstall
puts
puts "Type 'aqemu' to execute.".lightblue
puts
puts "To completely uninstall, execute the following:".lightblue
puts "crew remove aqemu".lightblue
puts "rm -rf ~/.aqemu".lightblue
puts
end
end
require 'package'
class Libvncserver < Package
description 'LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.'
homepage 'https://github.com/LibVNC/libvncserver'
version '0.9.12'
source_url 'https://github.com/LibVNC/libvncserver/archive/LibVNCServer-0.9.12.tar.gz'
source_sha256 '33cbbb4e15bb390f723c311b323cef4a43bcf781984f92d92adda3243a116136'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libvncserver-0.9.12-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libvncserver-0.9.12-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libvncserver-0.9.12-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4c2fd37b3d1d6d590a99eb123fb98f8477c8c56a6ff93df9ad438d330a664bb3',
armv7l: '4c2fd37b3d1d6d590a99eb123fb98f8477c8c56a6ff93df9ad438d330a664bb3',
x86_64: '958e6ad5cc6414e78e38677d1e5d245ac55c3d55e6648890ec7b5963e97f349a',
})
depends_on 'ffmpeg'
depends_on 'libjpeg_turbo'
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system 'cmake',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
"-DCMAKE_BUILD_TYPE=Release",
"-DWITH_SYSTEMD=OFF",
'..'
system 'cmake --build .'
system "sed -i 's,${CMAKE_INSTALL_PREFIX}/lib,#{CREW_LIB_PREFIX},g' cmake_install.cmake"
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment