mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Rebase qtbase to maintained kde/5.15 tree * update binaries * requested changes * Change version to reflect that in the source code * Update version. * Add i686 binary Co-authored-by: Ed Reel <edreel@gmail.com>
68 lines
2.3 KiB
Ruby
68 lines
2.3 KiB
Ruby
require 'package'
|
|
|
|
class Qtbase < Package
|
|
description 'Qt Base (Core, Gui, Widgets, Network, ...)'
|
|
homepage 'https://code.qt.io/cgit/qt/qtbase'
|
|
version '5.15.3'
|
|
license 'FDL, GPL-2, GPL-3, GPL-3-with-qt-exception and LGPL-3'
|
|
compatibility 'all'
|
|
source_url 'https://invent.kde.org/qt/qt/qtbase.git'
|
|
git_hashtag "kde/5.15"
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qtbase/5.15.3_armv7l/qtbase-5.15.3-chromeos-armv7l.tpxz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qtbase/5.15.3_armv7l/qtbase-5.15.3-chromeos-armv7l.tpxz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qtbase/5.15.3_i686/qtbase-5.15.3-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qtbase/5.15.3_x86_64/qtbase-5.15.3-chromeos-x86_64.tpxz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '8554431fc8f552380aa8822d440559c9fd2bbe00314d96ed5939637ef3a329e6',
|
|
armv7l: '8554431fc8f552380aa8822d440559c9fd2bbe00314d96ed5939637ef3a329e6',
|
|
i686: 'ae0ecf607b4f2742b7a6bde14f77c9aace3ad28511cfdec4e4db5e2a5ad54b6d',
|
|
x86_64: '9b58c01ad6d16498b1cd8a35ac97026f75dc5d19b586a0a3759362757ddd8bf7'
|
|
})
|
|
|
|
depends_on 'alsa_plugins'
|
|
depends_on 'cups'
|
|
depends_on 'ffmpeg'
|
|
depends_on 'fontconfig'
|
|
depends_on 'freetds'
|
|
depends_on 'gstreamer'
|
|
depends_on 'harfbuzz'
|
|
depends_on 'jsoncpp'
|
|
depends_on 'pcre2'
|
|
depends_on 'lcms'
|
|
depends_on 'libevent'
|
|
depends_on 'libinput'
|
|
depends_on 'libjpeg'
|
|
depends_on 'libvpx'
|
|
depends_on 'protobuf'
|
|
|
|
def self.build
|
|
system './configure',
|
|
"--prefix=#{CREW_PREFIX}/share/Qt-5",
|
|
"--libdir=#{CREW_LIB_PREFIX}",
|
|
'-nomake', 'examples',
|
|
'-nomake', 'tests',
|
|
'-verbose',
|
|
'-release',
|
|
'-opensource',
|
|
'-confirm-license',
|
|
'-inotify',
|
|
'-system-pcre',
|
|
'-system-zlib',
|
|
'-system-libpng',
|
|
'-system-libjpeg',
|
|
'-system-freetype'
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "INSTALL_ROOT=#{CREW_DEST_DIR}", 'install'
|
|
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
|