Commit d9ca530b authored by supechicken's avatar supechicken Committed by GitHub

Static checksum for some packages (#5656)

* Update clutter_gtk.rb

* Update and rename gcalculator.rb to gnome_calculator.rb

* Update gnome_mines.rb

* Update gsound.rb

* Update libgnome_games_support.rb

* Update gnome_klotski.rb

* Update gnome_sudoku.rb
parent 4b4b8427
......@@ -4,34 +4,18 @@ class Clutter_gtk < Package
description 'The Clutter Gtk package is a library providing facilities to integrate Clutter into GTK+ applications.'
homepage 'https://wiki.gnome.org/Projects/Clutter'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.8.4'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '1.8.4'
version @_ver + '-1'
license 'LGPL-2.1+'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/clutter_gtk-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/clutter_gtk-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/clutter_gtk-1.8.4-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/clutter_gtk-1.8.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '7f759c259b71f86c1e13ec5ffb8e0add079b5dfa4cddae06d81700db6834ac7d',
armv7l: '7f759c259b71f86c1e13ec5ffb8e0add079b5dfa4cddae06d81700db6834ac7d',
i686: '499108e196161dffd762aff54ffa8bbd338863c9d9cc8c2af54fd5728d11cb7d',
x86_64: '3b5b60ce00a67815def67ff992aac8caf89fb4ee0ef68d7a51c857ce30a3461e'
})
source_url "https://download.gnome.org/sources/clutter-gtk/#{@_ver.rpartition('.')[0]}/clutter-gtk-#{@_ver}.tar.xz"
source_sha256 '521493ec038973c77edcb8bc5eac23eed41645117894aaee7300b2487cb42b06'
depends_on 'gtk3'
depends_on 'libgee'
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
require 'package'
class Gcalculator < Package
description 'GNOME desktop calculator'
homepage 'https://wiki.gnome.org/Apps/Calculator'
@_app = 'gnome-calculator'
@_fullver = '3.38.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
license 'LGPL-2.1+'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/gcalculator-3.38.2-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/gcalculator-3.38.2-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/gcalculator-3.38.2-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/gcalculator-3.38.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'f733de0413e40cf0e730a06eef727ea1ace4a92e0fe8f3fd0590c7c7cee017db',
armv7l: 'f733de0413e40cf0e730a06eef727ea1ace4a92e0fe8f3fd0590c7c7cee017db',
i686: '6a1a313f5a9ecf6538920b2c63fd1147657e0ed157d6cc676a11f0256420bf40',
x86_64: 'ef3e8c4ef780fefa7a25d715c213f6717d387be9d141343328780ae93e3bec98',
})
depends_on 'setuptools' => :build
depends_on 'gtk3'
depends_on 'gtksourceview'
depends_on 'itstool'
depends_on 'libgee'
depends_on 'libsoup'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
puts
puts "To use the graphical calculator, execute 'gnome-calculator'".lightblue
puts
puts "To use the command line calculator, execute 'gcalccmd'".lightblue
puts
end
end
require 'package'
class Gnome_calculator < Package
description 'GNOME desktop calculator'
homepage 'https://wiki.gnome.org/Apps/Calculator'
@_ver = '3.38.2'
version @_ver + '-1'
license 'LGPL-2.1+'
compatibility 'all'
source_url "https://download.gnome.org/sources/gnome-calculator/#{@_ver.rpartition('.')[0]}/gnome-calculator-#{@_ver}.tar.xz"
source_sha256 '8c83cc6433e015d15aa2a0cf3d0b187f7adb92830d39dd2e66076c73192a316b'
depends_on 'setuptools' => :build
depends_on 'gtk3'
depends_on 'gtksourceview'
depends_on 'itstool'
depends_on 'libgee'
depends_on 'libsoup'
depends_on 'wayland'
def self.build
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
def self.postinstall
system "update-mime-database #{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
puts <<~EOT.lightblue
To use the graphical calculator, execute 'gnome-calculator'
To use the command line calculator, execute 'gcalccmd'
EOT
end
end
......@@ -3,15 +3,12 @@ require 'package'
class Gnome_klotski < Package
description 'A puzzle game for GNOME.'
homepage 'https://wiki.gnome.org/Apps/Klotski'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.38.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '3.38.2'
version @_ver + '-1'
license 'GPL-3+ and FDL-1.1+'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
source_url "https://download.gnome.org/sources/gnome-klotski/#{@_ver.rpartition('.')[0]}/gnome-klotski-#{@_ver}.tar.xz"
source_sha256 '91637845649f3ca709d29f71ee775b946d1112087209f32264e8fad21a0ca0e2'
depends_on 'clutter_gtk'
depends_on 'gsound'
......@@ -19,26 +16,17 @@ class Gnome_klotski < Package
depends_on 'libgnome_games_support'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system "update-mime-database #{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
......
......@@ -3,43 +3,31 @@ require 'package'
class Gnome_mines < Package
description 'GNOME Mines (formerly known as Gnomine) is minesweeper clone for GNOME'
homepage 'https://wiki.gnome.org/Apps/Mines'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.36.1'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '3.36.1'
version @_ver + '-1'
license 'GPL-3+ and CC-BY-SA-3.0'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
source_url "https://download.gnome.org/sources/gnome-mines/#{@_ver.rpartition('.')[0]}/gnome-mines-#{@_ver}.tar.xz"
source_sha256 '7188130d6faee1b87ca92295da196ad27139801ca793ea6b0c665a9232404654'
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'libgnome_games_support'
depends_on 'wayland'
def self.build
system "env CFLAGS='-fuse-ld=lld' CXXFLAGS='-fuse-ld=lld' \
meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system "update-mime-database #{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
......
......@@ -3,44 +3,31 @@ require 'package'
class Gnome_sudoku < Package
description 'Sudoku puzzle game for GNOME'
homepage 'https://wiki.gnome.org/Apps/Sudoku'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.38.0'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '3.38.0'
version @_ver + '-1'
license 'GPL-3+ and CC-BY-SA-3.0'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
source_url "https://download.gnome.org/sources/gnome-sudoku/#{@_ver.rpartition('.')[0]}/gnome-sudoku-#{@_ver}.tar.xz"
source_sha256 '38731d0cc6d56a21dbdc89409cc5bb3d08e1c02cd9009f4d57f5b34887e9fd32'
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'qqwing'
depends_on 'sommelier'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
# comment due to the display bug in wayland mode, may fixed in next build
#
#@_wrapper = <<~EOF
# #!/bin/sh
# WAYLAND_DISPLAY=wayland-0
# GDK_BACKEND=wayland
# CLUTTER_BACKEND=wayland
# exec #{@_app}.elf "$@"
#EOF
#File.write(@_app, @_wrapper)
#FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
#FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system "update-mime-database #{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
......
......@@ -3,15 +3,12 @@ require 'package'
class Gsound < Package
description 'GSound is a small library for playing system sounds.'
homepage 'https://wiki.gnome.org/Projects/GSound'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.0.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '1.0.2'
version @_ver
license 'LGPL-2.1+'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
source_url "https://download.gnome.org/sources/gsound/#{@_ver.rpartition('.')[0]}/gsound-#{@_ver}.tar.xz"
source_sha256 'bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53'
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/gsound-1.0.2-chromeos-armv7l.tar.xz',
......@@ -31,16 +28,15 @@ class Gsound < Package
def self.build
system './autogen.sh' if File.exist?('autogen.sh')
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS}"
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
def self.check
system "make", "check"
system 'make check'
end
end
......@@ -3,35 +3,19 @@ require 'package'
class Libgnome_games_support < Package
description 'libgnome-games-support is a small library intended for internal use by GNOME Games.'
homepage 'https://gitlab.gnome.org/GNOME/libgnome-games-support'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.8.0'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
@_ver = '1.8.1'
version @_ver
license 'LGPL-3+'
compatibility 'all'
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libgnome_games_support-1.8.0-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libgnome_games_support-1.8.0-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/libgnome_games_support-1.8.0-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/libgnome_games_support-1.8.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'a19aa61c3719f84c94394fc3f435ff51d02821e17005f3afd0088a934e0e3fce',
armv7l: 'a19aa61c3719f84c94394fc3f435ff51d02821e17005f3afd0088a934e0e3fce',
i686: 'f979572afa1af8325e4c9d480f20bac1574b9278409c4bd80e413a08ba13d610',
x86_64: '5ecda51e0782e91ebf5454e5f0869260a17f97ae2d48f16d0313d5f4fbdfb21a'
})
source_url "https://download.gnome.org/sources/libgnome-games-support/#{@_ver.rpartition('.')[0]}/libgnome-games-support-#{@_ver}.tar.xz"
source_sha256 'c37b7acd3ba7eb12207f5d7bb020535fa5783b0bd897e51b2bd629ce119a413f'
depends_on 'gtk3'
depends_on 'libgee'
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment