void-packages/srcpkgs/iucode-tool/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

17 lines
594 B
Bash

# Template file for 'iucode-tool'
pkgname=iucode-tool
version=2.3.1
revision=2
archs="i686* x86_64*"
build_style=gnu-configure
short_desc="Program to manipulate microcode update collections for Intel"
maintainer="Vintodrimmer <vintodrimmer@protonmail.ch>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/iucode-tool/iucode-tool/wikis/home"
distfiles="https://gitlab.com/iucode-tool/releases/raw/latest/iucode-tool_${version}.tar.xz"
checksum=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends="argp-standalone" ;;
esac