Files
chromebrew/packages/libvncserver.rb
2023-06-22 10:48:42 -04:00

47 lines
1.8 KiB
Ruby

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.14'
compatibility 'all'
license 'GPL-2, GPL-2+, LGPL-2.1+, BSD and MIT'
source_url "https://github.com/LibVNC/libvncserver/archive/LibVNCServer-#{version}.tar.gz"
source_sha256 '83104e4f7e28b02f8bf6b010d69b626fae591f887e949816305daebae527c9a5'
binary_url({
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libvncserver/0.9.14_x86_64/libvncserver-0.9.14-chromeos-x86_64.tar.zst',
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libvncserver/0.9.14_armv7l/libvncserver-0.9.14-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libvncserver/0.9.14_armv7l/libvncserver-0.9.14-chromeos-armv7l.tar.zst'
})
binary_sha256({
x86_64: 'e91fe2d7c70cf4683379c57ef4c4ed63807226213b69d85015da72bf3e7e0037',
aarch64: '640218d703bebf5bfbac3095018f559890dcfcfa5eeeafd5d74b933144124316',
armv7l: '640218d703bebf5bfbac3095018f559890dcfcfa5eeeafd5d74b933144124316'
})
depends_on 'ffmpeg' => :build
depends_on 'glibc' # R
depends_on 'gnutls' # R
depends_on 'gtk2' => :build
depends_on 'libcyrussasl' # R
depends_on 'libgcrypt' # R
depends_on 'libjpeg' # R
depends_on 'libpng' # R
depends_on 'lzo' # R
depends_on 'openssl' # R
depends_on 'zlibpkg' # R
def self.build
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DWITH_SYSTEMD=OFF \
-Wno-dev \
-G Ninja"
system "#{CREW_NINJA} -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
end
end