diff options
author | wael <wael@waelk.tech> | 2022-04-28 08:48:04 +0300 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-04-29 05:02:03 -0400 |
commit | 70909bcdfe491c6b9159269974d1e48b94f9b173 (patch) | |
tree | 734d12cf3c3e118626f5aac8602ab740a6e63fe2 | |
parent | 23b4835414630830a3ce58fbef1601d5b0cea055 (diff) | |
download | abslibre-70909bcdfe491c6b9159269974d1e48b94f9b173.tar.gz abslibre-70909bcdfe491c6b9159269974d1e48b94f9b173.tar.bz2 abslibre-70909bcdfe491c6b9159269974d1e48b94f9b173.zip |
[coreboot-util][libreboot-util]: rename package - use libreboot sources
-rw-r--r-- | pcr/coreboot-util/PKGBUILD | 43 | ||||
-rw-r--r-- | pcr/libreboot-util/PKGBUILD | 60 |
2 files changed, 60 insertions, 43 deletions
diff --git a/pcr/coreboot-util/PKGBUILD b/pcr/coreboot-util/PKGBUILD deleted file mode 100644 index ff26ebef0..000000000 --- a/pcr/coreboot-util/PKGBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Maintainer: Wael Karram <wael@waelk.tech> - -pkgname=coreboot-util -pkgver=4.15 -pkgrel=1 -pkgdesc="Misc utils from the coreboot project" -url="https://review.coreboot.org/util/ectool" -arch=('x86_64' 'i686' 'armv7h') -license=('GPL2') -makedepends=('pciutils') -source=("coreboot-${pkgver}.tar.gz::https://coreboot.org/releases/coreboot-${pkgver}.tar.xz") -sha256sums=('20e6aaa6dd0eaec7753441c799711d1b4630e3ca709536386f2242ac2c8a1ec5') - -build() { - cd coreboot-${pkgver}/util - - # Build ectool. - make -C ectool - # Build cbfstool. - make -C cbfstool - # Build nvramtool. - make -C nvramtool - # Build superiotool. - make -C superiotool - # Build cbmem. - make -C cbmem -} - -package() { - cd coreboot-${pkgver}/util - - # Install ectool in /usr/bin. - install -Dm755 ectool/ectool "${pkgdir}"/usr/bin/ectool - # Install cbfstool and rmodtool in /usr/bin. - install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool - install -Dm755 cbfstool/rmodtool "${pkgdir}"/usr/bin/rmodtool - # Install nvramtool in /usr/bin. - install -Dm755 nvramtool/nvramtool "${pkgdir}"/usr/bin/nvramtool - # Install superiotool in /usr/bin. - install -Dm755 superiotool/superiotool "${pkgdir}"/usr/bin/superiotool - # Install cbmem in /usr/bin. - install -Dm755 cbmem/cbmem "${pkgdir}"/usr/bin/cbmem -} diff --git a/pcr/libreboot-util/PKGBUILD b/pcr/libreboot-util/PKGBUILD new file mode 100644 index 000000000..2933ade93 --- /dev/null +++ b/pcr/libreboot-util/PKGBUILD @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: CC0-1.0 +# Maintainer: Wael Karram <wael@waelk.tech> + +pkgname=libreboot-util +pkgrel=1 +_upstream_ver=20211122 +pkgver=4.15.libreboot${_upstream_ver} +pkgdesc="Misc. Coreboot/Libreboot utils (bucts, 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/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 + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/bucts/" + sed 's#/sbin#/bin#' -i Makefile +} + +build() { + # Get to the directory. + cd "$srcdir/libreboot-${_upstream_ver}_src/coreboot/default/util/" + + # Build bucts. + make -C bucts + # 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/" + + # Install bucts. + install -Dm755 bucts/bucts "${pkgdir}"/usr/bin/bucts + # Install ECtool. + install -Dm755 ectool/ectool "${pkgdir}"/usr/bin/ectool + # Install nvramtool. + install -Dm755 nvramtool/nvramtool "${pkgdir}"/usr/bin/nvramtool + # Install superiotool. + install -Dm755 superiotool/superiotool "${pkgdir}"/usr/bin/superiotool +} |