mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
47 lines
1.8 KiB
Ruby
47 lines
1.8 KiB
Ruby
require 'package'
|
|
|
|
class Qttools < Package
|
|
description 'Qt Tools'
|
|
homepage 'https://github.com/qt/qttools'
|
|
version '5.15.1'
|
|
compatibility 'aarch64,armv7l,x86_64'
|
|
source_url 'http://download.qt.io/official_releases/qt/5.15/5.15.1/submodules/qttools-everywhere-src-5.15.1.tar.xz'
|
|
source_sha256 'c98ee5f0f980bf68cbf0c94d62434816a92441733de50bd9adbe9b9055f03498'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/qttools-5.15.1-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/qttools-5.15.1-chromeos-armv7l.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/qttools-5.15.1-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: 'b800130b6db80652fc3c9bde2008b8fa64b1e5bab5dfe717c10b8fb04d686b94',
|
|
armv7l: 'b800130b6db80652fc3c9bde2008b8fa64b1e5bab5dfe717c10b8fb04d686b94',
|
|
x86_64: 'ca2818363c965077ae2eaf6430369f5a37f5288dd229bbf352072c2a8adffa03',
|
|
})
|
|
|
|
depends_on 'qtbase'
|
|
depends_on 'libtinfo'
|
|
depends_on 'llvm'
|
|
depends_on 'zstd'
|
|
depends_on 'sommelier'
|
|
|
|
def self.build
|
|
system 'qmake && make'
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}"
|
|
system "cp -a lib/* #{CREW_DEST_LIB_PREFIX}"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.cp_r 'bin', "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.cp_r 'examples', "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.cp_r 'include', "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.cp_r 'mkspecs', "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.cp_r 'src/linguist/phrasebooks', "#{CREW_DEST_PREFIX}/share/Qt-5"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
Dir.chdir "#{CREW_DEST_PREFIX}/share/Qt-5/bin" do
|
|
system "find . -type f -exec ln -s #{CREW_PREFIX}/share/Qt-5/bin/{} #{CREW_DEST_PREFIX}/bin/{} \\;"
|
|
end
|
|
end
|
|
end
|