```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 ```
28 lines
761 B
Bash
28 lines
761 B
Bash
# Template file for 'librtas'
|
|
pkgname=librtas
|
|
version=2.0.2
|
|
revision=2
|
|
archs="ppc ppc-musl ppc64*"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
short_desc="Librtas library for Linux on Power systems"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/ibm-power-utilities/librtas"
|
|
distfiles="https://github.com/ibm-power-utilities/librtas/archive/v${version}.tar.gz"
|
|
checksum=b47b2a6f140347ac265e2c66ddf68293f6cdcc7c0c9a78c6e21ff52846465415
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
librtas-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|