* par is kept at -Np0 ```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 ```
29 lines
884 B
Bash
29 lines
884 B
Bash
# Template file for 'powerpc-utils'
|
|
pkgname=powerpc-utils
|
|
version=1.3.7
|
|
revision=1
|
|
archs="ppc ppc-musl ppc64*"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-silent-rules"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="librtas-devel zlib-devel"
|
|
depends="bc"
|
|
short_desc="Suite of utilities for Linux on Power systems"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/ibm-power-utilities/powerpc-utils"
|
|
distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
|
|
checksum=bb48758bca3b9d056141b522e700218ee4e814b517aadf5a01f53b970ad1d3c3
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
|
|
fi
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" libexecinfo-devel"
|
|
configure_args+=" LIBS=-lexecinfo"
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|