mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Add unbuilt libglu to updater-libglu-9.0.3 * updater-libglu-9.0.3: Build Run on linux/arm/v7. * updater-libglu-9.0.3: Build Run on linux/amd64. * updater-libglu-9.0.3: Package File Update Run on linux/amd64 container. * Remove i686 hash. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com>
39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Libglu < Package
|
|
description 'Mesa OpenGL Utility library'
|
|
homepage 'https://www.mesa3d.org/'
|
|
version '9.0.3'
|
|
license 'SGI-B-2.0'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://gitlab.freedesktop.org/mesa/glu.git'
|
|
git_hashtag "glu-#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'f4610c827c80fe817f0f91eaf52a0bc820d1051747af117a849ed6749dea2e3f',
|
|
armv7l: 'f4610c827c80fe817f0f91eaf52a0bc820d1051747af117a849ed6749dea2e3f',
|
|
x86_64: '878ab6a7129c6fcfaa576343ee2c00eeb68daed891a9ae9dcc4a961a084c825f'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libglvnd' # R
|
|
|
|
def self.build
|
|
system 'meson setup build'
|
|
system "meson configure #{CREW_MESON_OPTIONS} \
|
|
build"
|
|
system 'ninja -C build'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
|
|
# Get these from xorg_server package
|
|
@deletefiles = %W[#{CREW_DEST_PREFIX}/bin/X #{CREW_DEST_MAN_PREFIX}/man1/Xserver.1]
|
|
@deletefiles.each do |f|
|
|
FileUtils.rm_f f
|
|
end
|
|
end
|
|
end
|