Files
chromebrew/packages/xdpyinfo.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

46 lines
1.3 KiB
Ruby

# Adapted from Arch Linux xorg-xdpyinfo PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/xorg-xdpyinfo/trunk/PKGBUILD
require 'package'
class Xdpyinfo < Package
description 'Display information utility for X'
homepage 'https://xorg.freedesktop.org/'
version '1.3.3'
license 'MIT-with-advertising'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://gitlab.freedesktop.org/xorg/app/xdpyinfo.git'
git_hashtag "xdpyinfo-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '6041d86f4823e1dd0918d920124ef79eebfa2f7496947d3171a8f58d09358b33',
armv7l: '6041d86f4823e1dd0918d920124ef79eebfa2f7496947d3171a8f58d09358b33',
x86_64: '50a3cd0a5276633ef0b5d825a76fb90fa5f10d5790ed9a394eb900924d44d667'
})
depends_on 'xorg_proto' => :build
depends_on 'glibc' # R
depends_on 'libdmx' # R
depends_on 'libx11' # R
depends_on 'libxcb' # R
depends_on 'libxcomposite' # R
depends_on 'libxext' # R
depends_on 'libxi' # R
depends_on 'libxinerama' # R
depends_on 'libxrender' # R
depends_on 'libxtst' # R
depends_on 'libxxf86dga' # R
depends_on 'libxxf86vm' # R
def self.build
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end