Files
chromebrew/packages/libxss.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

40 lines
1.1 KiB
Ruby

require 'package'
class Libxss < Package
description 'X11 Screen Saver extension library'
homepage 'https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver'
version '1.2.4'
license 'MIT'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver.git'
git_hashtag "libXScrnSaver-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '2779424e8d1364c22a3d56cd98bf335721ceb0adb6229db84702009d116b7f72',
armv7l: '2779424e8d1364c22a3d56cd98bf335721ceb0adb6229db84702009d116b7f72',
x86_64: 'ea6648451677b22506a534c62a3a90a7e12ee433cfee8835dcef65894ee12517'
})
depends_on 'glibc' # R
depends_on 'libbsd' # R
depends_on 'libmd' # R
depends_on 'libx11' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'libxext' # R
depends_on 'xorg_macros' => :build
def self.build
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "./configure #{CREW_CONFIGURE_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end