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 ```
38 lines
852 B
Bash
38 lines
852 B
Bash
# Template file for 'cpuburn'
|
|
pkgname=cpuburn
|
|
version=1.4a
|
|
revision=4
|
|
archs="armv6l* armv7l* i686* x86_64*"
|
|
short_desc="Collection of programs to put heavy load on CPU"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
|
|
distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
|
|
checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
|
|
|
|
do_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) make CC="$CC";;
|
|
arm*) make -C ARM CC="$CC";;
|
|
esac
|
|
}
|
|
|
|
do_install() {
|
|
vdoc README
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*)
|
|
vbin burnBX
|
|
vbin burnK6
|
|
vbin burnK7
|
|
vbin burnMMX
|
|
vbin burnP5
|
|
vbin burnP6
|
|
vdoc Design
|
|
;;
|
|
arm*)
|
|
vbin ARM/burnCortexA8
|
|
vbin ARM/burnCortexA9
|
|
vdoc ARM/Design
|
|
;;
|
|
esac
|
|
}
|