commit 81266892bcb9ee6225281abbe1204322b9d9614a
parent cb450527faf3682e628dcf9de5afaca71fcf8c11
Author: St John Karp <contact@stjo.hn>
Date: Sun, 26 Jun 2022 16:58:30 -0400
coreboot-configurator: Add package at version 8
Diffstat:
6 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/extra/coreboot-configurator/build b/extra/coreboot-configurator/build
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+for file in patches/* ; do
+ patch -p1 < "$file"
+done
+
+meson build \
+ --prefix=/usr
+
+ninja -C build
+ninja -C build install
diff --git a/extra/coreboot-configurator/checksums b/extra/coreboot-configurator/checksums
@@ -0,0 +1,2 @@
+176d7f64ee32d3d03bbc3674d48ffe479d8450068a4b7bd26d328ed80d2a1c75
+22acad372ad6e7a32db78eab37ee08a56cfefcbe8fbf21443250a4e8e156dfa7
diff --git a/extra/coreboot-configurator/depends b/extra/coreboot-configurator/depends
@@ -0,0 +1,5 @@
+meson make
+nvramtool
+qt5
+qt5-svg
+yaml-cpp
diff --git a/extra/coreboot-configurator/patches/no-inkscape.patch b/extra/coreboot-configurator/patches/no-inkscape.patch
@@ -0,0 +1,50 @@
+diff --git a/src/resources/meson.build b/src/resources/meson.build
+index 12270ab..a9f2773 100644
+--- a/src/resources/meson.build
++++ b/src/resources/meson.build
+@@ -20,24 +20,24 @@ install_data(desktop_sources,
+ install_dir: desktop_dir)
+
+ # Icon
+-inkscape = find_program('inkscape')
+-icon_dir = join_paths(get_option('datadir'),'icons', 'hicolor')
+-foreach size: get_option('sizes')
+- target_temp_name = '@0@'.format(size)
+- dpi=size.to_int() * 2
+- png = configure_file(
+- input: 'coreboot_configurator.svg',
+- output: target_temp_name + '.png',
+- command: [
+- inkscape,
+- '--export-height=@0@'.format(size),
+- '--export-width=@0@'.format(size),
+- '--export-png=@OUTPUT@',
+- '@INPUT@',
+- ]
+- )
+-
+- install_data(png,
+- rename: meson.project_name() + '.png',
+- install_dir: join_paths(icon_dir, '@0@x@1@'.format(size, size), 'apps'))
+-endforeach
++#inkscape = find_program('inkscape')
++#icon_dir = join_paths(get_option('datadir'),'icons', 'hicolor')
++#foreach size: get_option('sizes')
++# target_temp_name = '@0@'.format(size)
++# dpi=size.to_int() * 2
++# png = configure_file(
++# input: 'coreboot_configurator.svg',
++# output: target_temp_name + '.png',
++# command: [
++# inkscape,
++# '--export-height=@0@'.format(size),
++# '--export-width=@0@'.format(size),
++# '--export-png=@OUTPUT@',
++# '@INPUT@',
++# ]
++# )
++#
++# install_data(png,
++# rename: meson.project_name() + '.png',
++# install_dir: join_paths(icon_dir, '@0@x@1@'.format(size, size), 'apps'))
++#endforeach
diff --git a/extra/coreboot-configurator/sources b/extra/coreboot-configurator/sources
@@ -0,0 +1,2 @@
+https://github.com/StarLabsLtd/coreboot-configurator/archive/refs/tags/VERSION.tar.gz
+patches/no-inkscape.patch patches
diff --git a/extra/coreboot-configurator/version b/extra/coreboot-configurator/version
@@ -0,0 +1 @@
+8 1