mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
cups -> 2.4.2 (#7084)
This commit is contained in:
@@ -3,7 +3,7 @@ require 'package'
|
||||
class Cups < Package
|
||||
description 'CUPS is the standards-based, open source printing system'
|
||||
homepage 'https://github.com/OpenPrinting/cups'
|
||||
@_ver = '2.4.0'
|
||||
@_ver = '2.4.2'
|
||||
version @_ver
|
||||
license 'Apache-2.0'
|
||||
compatibility 'all'
|
||||
@@ -11,16 +11,16 @@ class Cups < Package
|
||||
git_hashtag "v#{@_ver}"
|
||||
|
||||
binary_url({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.0_armv7l/cups-2.4.0-chromeos-armv7l.tpxz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.0_armv7l/cups-2.4.0-chromeos-armv7l.tpxz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.0_i686/cups-2.4.0-chromeos-i686.tpxz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.0_x86_64/cups-2.4.0-chromeos-x86_64.tpxz'
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.2_armv7l/cups-2.4.2-chromeos-armv7l.tar.zst',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.2_armv7l/cups-2.4.2-chromeos-armv7l.tar.zst',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.2_i686/cups-2.4.2-chromeos-i686.tar.zst',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cups/2.4.2_x86_64/cups-2.4.2-chromeos-x86_64.tar.zst'
|
||||
})
|
||||
binary_sha256({
|
||||
aarch64: '13db998ba3942d45c7d73b74bf6b4fc562b5bb04a4f57c9228dc5bf31f9e78b8',
|
||||
armv7l: '13db998ba3942d45c7d73b74bf6b4fc562b5bb04a4f57c9228dc5bf31f9e78b8',
|
||||
i686: 'f10a508ea7e45a84ec3418cc8523e2ed0f3b939469a6610ba7c23f581c2f777b',
|
||||
x86_64: '7f26cef90ae5e9f8b30d18682a707946a1ef174af0118650f93010fb3f9723b8'
|
||||
aarch64: '4122b205373155bf4b4e66d6ac43676e1d3fd71809719f869bfc4413e8366d76',
|
||||
armv7l: '4122b205373155bf4b4e66d6ac43676e1d3fd71809719f869bfc4413e8366d76',
|
||||
i686: '69c5785cd4f409abe649ced3629640e0ae5421f7ded9783918be284905c23923',
|
||||
x86_64: 'b031e0dbf4bb329a60bac4db64bcd29dc561ce01c270b701afcf6582285e205e'
|
||||
})
|
||||
|
||||
depends_on 'libusb'
|
||||
@@ -28,7 +28,7 @@ class Cups < Package
|
||||
depends_on 'psmisc'
|
||||
|
||||
def self.build
|
||||
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS} \
|
||||
system "./configure #{CREW_OPTIONS} \
|
||||
--enable-libusb"
|
||||
system 'make'
|
||||
system "echo '#!/bin/bash' > startcupsd"
|
||||
@@ -75,8 +75,9 @@ class Cups < Package
|
||||
"CACHEDIR=#{CREW_DEST_PREFIX}/var/cache/cups",
|
||||
"LOCALEDIR=#{CREW_DEST_PREFIX}/share/locale",
|
||||
'install'
|
||||
system "install -Dm755 startcupsd #{CREW_DEST_PREFIX}/bin/startcupsd"
|
||||
system "install -Dm755 stopcupsd #{CREW_DEST_PREFIX}/bin/stopcupsd"
|
||||
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
||||
FileUtils.install 'startcupsd', "#{CREW_DEST_PREFIX}/bin/startcupsd", mode: 0o755
|
||||
FileUtils.install 'stopcupsd', "#{CREW_DEST_PREFIX}/bin/stopcupsd", mode: 0o755
|
||||
if File.exist?("#{CREW_DEST_DIR}/etc/dbus-1/system.d/cups.conf")
|
||||
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/dbus-1/system.d"
|
||||
FileUtils.mv "#{CREW_DEST_DIR}/etc/dbus-1/system.d/cups.conf", "#{CREW_DEST_PREFIX}/share/dbus-1/system.d/"
|
||||
@@ -92,7 +93,7 @@ class Cups < Package
|
||||
puts "To start the cups daemon, run 'startcupsd'".lightblue
|
||||
puts "To stop the cups daemon, run 'stopcupsd'".lightblue
|
||||
puts
|
||||
puts 'For more information, see https://docs.oracle.com/cd/E23824_01/html/821-1451/gllgm.html'.lightblue
|
||||
puts 'For more information, see https://www.cups.org/doc/admin.html'.lightblue
|
||||
puts
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user