```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 ```
19 lines
605 B
Bash
19 lines
605 B
Bash
# Template file for 'csync2'
|
|
pkgname=csync2
|
|
version=2.0
|
|
revision=4
|
|
wrksrc="$pkgname-$pkgname-$version"
|
|
build_style=gnu-configure
|
|
conf_files="/etc/csync2.cfg"
|
|
hostmakedepends="automake bison flex pkg-config"
|
|
makedepends="librsync-devel sqlite-devel gnutls-devel"
|
|
short_desc="Cluster synchronization tool"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://oss.linbit.com/csync2/"
|
|
distfiles="https://github.com/LINBIT/csync2/archive/csync2-$version.tar.gz"
|
|
checksum=a1c6b0364eb9f19986a92fccd369bae29aa5aa55300e0664dadaf80d80de23ff
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|