From ae9b0724c4c405d99b1d92a55220dff9b1972621 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Wed, 4 May 2022 01:19:36 +0200 Subject: pcr: libreboot-util: rename to libreboot-utils and fix header Since there is more than one utility in this package it's more clear if it is named libreboot-utils. In addition, this packages has part from the nvramtool I made from scratch so I added myself in the header in addition of Wael Karramas who is the main author of this package. I also fixed the Maintainers line as more than one person involved in Parabola has some knowledge about Libreboot and Coreboot. Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/libreboot-util/PKGBUILD | 85 ------------------------------------------- pcr/libreboot-utils/PKGBUILD | 87 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 85 deletions(-) delete mode 100644 pcr/libreboot-util/PKGBUILD create mode 100644 pcr/libreboot-utils/PKGBUILD (limited to 'pcr') diff --git a/pcr/libreboot-util/PKGBUILD b/pcr/libreboot-util/PKGBUILD deleted file mode 100644 index 26e83566f..000000000 --- a/pcr/libreboot-util/PKGBUILD +++ /dev/null @@ -1,85 +0,0 @@ -# SPDX-License-Identifier: CC0-1.0 -# Maintainer: Wael Karram - -pkgname=libreboot-util -pkgrel=1 -_upstream_ver=20211122 -pkgver=4.15.libreboot${_upstream_ver} -pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)" -url="https://libreboot.org/" -arch=('x86_64' 'i686' 'armv7h') -license=('GPL2') -makedepends=('pciutils') - -_mirror="https://mirrors.mit.edu/libreboot" # use a mirror per libreboot's request -source=(${_mirror}/testing/${_upstream_ver}/libreboot-${_upstream_ver}_src.tar.xz{,.sig}) -sha256sums=('e8a610e51e668c34627a6d9c048c554592fd2c2ab4dbcad83c85c06d132e5ad1' - '4442fc225383e1edf8f45e1aecba81868ae43db19978f15c17828389364c0434') -sha512sums=('3eac75b33bc6d2874c3ca1ad2392db7287992cf91d37879bb3244dbd6716bc7ffa3f8d31e15d821899e91a55b6fe665d918bea4e9da92e5e98345e9bcbe1bb95' - '3a532ecef550ef27b723845544e91ff6b13ed6f2f1188d40fdeb7b3c416be619ff58103c3b01cd52ff88c28df6d419d2113b92d0b8ba36d1a74cfc16f70e0e63') -validpgpkeys=('98CCDDF8E56047F475C044BDD0C62464FA8B4856') # Leah Rowe - -prepare() { - # Replace sbin with bin in the makefiles. - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/bucts/" - sed 's#/sbin#/bin#' -i Makefile - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/cbfstool/" - sed 's#/sbin#/bin#' -i Makefile - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/ectool/" - sed 's#/sbin#/bin#' -i Makefile - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/nvramtool/" - sed 's#/sbin#/bin#' -i Makefile - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/superiotool/" - sed 's#/sbin#/bin#' -i Makefile - - # Remove uneeded files. - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/" - rm -rf tests - rm -rf spd - rm -rf payloads - rm -rf Documentation -} - -build() { - # Get to the directory. - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" - - # Build bucts. - make -C bucts - # Build cbfstool. - case "${CARCH}" in - armv7h) make -C cbfstool;; - #i686) make -C cbfstool;; #broken - x86_64) make -C cbfstool;; - esac - # Build ECtool. - make -C ectool - # Build nvramtool. - make -C nvramtool - # Build superiotool. - make -C superiotool -} - -package() { - # Get to the directory. - cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" - - # Set directories up. - install -d "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/man/man8 - # Install bucts. - install -Dm755 bucts/bucts "${pkgdir}"/usr/bin/bucts - # Install cbfstool. - case "${CARCH}" in - armv7h) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; - #i686) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; #broken - x86_64) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; - esac - # Install ECtool. - install -Dm755 ectool/ectool "${pkgdir}"/usr/bin/ectool - # Install nvramtool. - install -Dm755 nvramtool/nvramtool "${pkgdir}"/usr/bin/nvramtool - install -m644 nvramtool/cli/nvramtool.8 "${pkgdir}"/usr/share/man/man8 - # Install superiotool. - install -Dm755 superiotool/superiotool "${pkgdir}"/usr/bin/superiotool - install -m644 superiotool/superiotool.8 "${pkgdir}"/usr/share/man/man8 -} diff --git a/pcr/libreboot-utils/PKGBUILD b/pcr/libreboot-utils/PKGBUILD new file mode 100644 index 000000000..9e67d25e6 --- /dev/null +++ b/pcr/libreboot-utils/PKGBUILD @@ -0,0 +1,87 @@ +# Copyright (C) 2022 Denis 'GNUtoo' Carikli +# Copyright (C) 2022 Wael Karram +# SPDX-License-Identifier: CC0-1.0 +# Maintainers: Parabola hackers + +pkgname=libreboot-utils +pkgrel=1 +_upstream_ver=20211122 +pkgver=4.15.libreboot${_upstream_ver} +pkgdesc="Misc. Coreboot/Libreboot utils (bucts, cbfstool, ECtool, nvramtool, superiotool)" +url="https://libreboot.org/" +arch=('x86_64' 'i686' 'armv7h') +license=('GPL2') +makedepends=('pciutils') + +_mirror="https://mirrors.mit.edu/libreboot" # use a mirror per libreboot's request +source=(${_mirror}/testing/${_upstream_ver}/libreboot-${_upstream_ver}_src.tar.xz{,.sig}) +sha256sums=('e8a610e51e668c34627a6d9c048c554592fd2c2ab4dbcad83c85c06d132e5ad1' + '4442fc225383e1edf8f45e1aecba81868ae43db19978f15c17828389364c0434') +sha512sums=('3eac75b33bc6d2874c3ca1ad2392db7287992cf91d37879bb3244dbd6716bc7ffa3f8d31e15d821899e91a55b6fe665d918bea4e9da92e5e98345e9bcbe1bb95' + '3a532ecef550ef27b723845544e91ff6b13ed6f2f1188d40fdeb7b3c416be619ff58103c3b01cd52ff88c28df6d419d2113b92d0b8ba36d1a74cfc16f70e0e63') +validpgpkeys=('98CCDDF8E56047F475C044BDD0C62464FA8B4856') # Leah Rowe + +prepare() { + # Replace sbin with bin in the makefiles. + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/bucts/" + sed 's#/sbin#/bin#' -i Makefile + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/cbfstool/" + sed 's#/sbin#/bin#' -i Makefile + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/ectool/" + sed 's#/sbin#/bin#' -i Makefile + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/nvramtool/" + sed 's#/sbin#/bin#' -i Makefile + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/superiotool/" + sed 's#/sbin#/bin#' -i Makefile + + # Remove uneeded files. + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/" + rm -rf tests + rm -rf spd + rm -rf payloads + rm -rf Documentation +} + +build() { + # Get to the directory. + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" + + # Build bucts. + make -C bucts + # Build cbfstool. + case "${CARCH}" in + armv7h) make -C cbfstool;; + #i686) make -C cbfstool;; #broken + x86_64) make -C cbfstool;; + esac + # Build ECtool. + make -C ectool + # Build nvramtool. + make -C nvramtool + # Build superiotool. + make -C superiotool +} + +package() { + # Get to the directory. + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" + + # Set directories up. + install -d "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/man/man8 + # Install bucts. + install -Dm755 bucts/bucts "${pkgdir}"/usr/bin/bucts + # Install cbfstool. + case "${CARCH}" in + armv7h) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; + #i686) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; #broken + x86_64) install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool;; + esac + # Install ECtool. + install -Dm755 ectool/ectool "${pkgdir}"/usr/bin/ectool + # Install nvramtool. + install -Dm755 nvramtool/nvramtool "${pkgdir}"/usr/bin/nvramtool + install -m644 nvramtool/cli/nvramtool.8 "${pkgdir}"/usr/share/man/man8 + # Install superiotool. + install -Dm755 superiotool/superiotool "${pkgdir}"/usr/bin/superiotool + install -m644 superiotool/superiotool.8 "${pkgdir}"/usr/share/man/man8 +} -- cgit v1.2.3