```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 ```
26 lines
640 B
Bash
26 lines
640 B
Bash
# Template file for 'memtest86+'
|
|
pkgname=memtest86+
|
|
version=5.01
|
|
revision=5
|
|
archs="i686 x86_64"
|
|
short_desc="Advanced Memory Diagnostic Tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.memtest.org"
|
|
distfiles="http://www.memtest.org/download/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039
|
|
|
|
nostrip=yes
|
|
noverifyrdeps=yes
|
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
makedepends="gcc-multilib"
|
|
fi
|
|
|
|
do_build() {
|
|
make
|
|
}
|
|
do_install() {
|
|
vinstall memtest.bin 755 boot memtest86+
|
|
vinstall ${FILESDIR}/20_memtest86+ 755 etc/grub.d
|
|
}
|