c987560802
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'coreboot-utils'
|
|
pkgname=coreboot-utils
|
|
version=4.13
|
|
revision=1
|
|
archs="i686* x86_64*"
|
|
wrksrc="coreboot-${version}"
|
|
build_wrksrc="util"
|
|
build_style=gnu-makefile
|
|
makedepends="pciutils-devel zlib-devel"
|
|
short_desc="Coreboot firmware utilities"
|
|
maintainer="m3tav3rse <mtvrs@tuta.io>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://coreboot.org"
|
|
distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz"
|
|
checksum=4779da645a25ddebc78f1bd2bd0b740fb1e6479572648d4650042a2b9502856a
|
|
|
|
do_build() {
|
|
for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
|
|
nvramtool superiotool; do
|
|
make ${makejobs} -C $util
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
|
|
nvramtool superiotool; do
|
|
vbin $util/$util
|
|
done
|
|
vman inteltool/inteltool.8
|
|
vman nvramtool/cli/nvramtool.8
|
|
vman superiotool/superiotool.8
|
|
}
|
|
|
|
coreboot-utils-me_cleaner_package() {
|
|
python_version=3
|
|
depends="python3"
|
|
short_desc="Tool for partial deblobbing Intel ME/TXE firmware images"
|
|
license="GPL-3.0-or-later"
|
|
pkg_install() {
|
|
vbin me_cleaner/me_cleaner.py me_cleaner
|
|
vman me_cleaner/man/me_cleaner.1
|
|
}
|
|
}
|