```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 ```
12 lines
471 B
Bash
12 lines
471 B
Bash
# Template file for 'ucl'
|
|
pkgname=ucl
|
|
version=1.03
|
|
revision=6
|
|
build_style=gnu-configure
|
|
short_desc="Portable lossless data compression library written in ANSI C"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.oberhumer.com/opensource/ucl/"
|
|
distfiles="http://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"
|
|
checksum=b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348
|
|
conflicts="libucl-devel>=0"
|