c6ce65d3d0
```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 ```
18 lines
625 B
Bash
18 lines
625 B
Bash
# Template file for 'bridge-utils'
|
|
pkgname=bridge-utils
|
|
version=1.6
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin"
|
|
hostmakedepends="automake"
|
|
short_desc="Layer2 ethernet bridging for Linux"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
|
|
distfiles="${KERNEL_SITE}/utils/net/bridge-utils/bridge-utils-${version}.tar.xz"
|
|
checksum=cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8
|
|
|
|
pre_configure() {
|
|
sed "s/u_int\([0-9]*\)_t/uint\1_t/" -i libbridge/libbridge.h
|
|
autoreconf -fi
|
|
}
|