986c0a7d5e
```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
483 B
Bash
18 lines
483 B
Bash
# Template file for 'iouyap'
|
|
pkgname=iouyap
|
|
version=0.97
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="bison flex"
|
|
short_desc="Bridge IOU to UDP, TAP and Ethernet"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/GNS3/iouyap"
|
|
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
do_install() {
|
|
vbin iouyap
|
|
}
|