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 ```
16 lines
602 B
Bash
16 lines
602 B
Bash
# Template file for 'batctl14'
|
|
pkgname=batctl14
|
|
version=2013.4.0
|
|
revision=2
|
|
wrksrc="batctl-$version"
|
|
build_style=gnu-makefile
|
|
make_install_args="SBINDIR=/usr/bin"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libnl3-devel"
|
|
short_desc="B.A.T.M.A.N. advanced management tool (protocol version 14)"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.open-mesh.net/"
|
|
distfiles="http://downloads.open-mesh.net/batman/releases/batman-adv-${version}/batctl-${version}.tar.gz"
|
|
checksum=4deae3b6664d0d13acf7a8ece74175a31a72fe58fb15cb9112a9a2014b32cb4c
|
|
conflicts="batctl>=0"
|