```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
493 B
Bash
19 lines
493 B
Bash
# Template file for 'noip2'
|
|
pkgname=noip2
|
|
version=2.1.9r1
|
|
revision=4
|
|
wrksrc="noip-${version/r/-}"
|
|
short_desc="No-ip Dynamic DNS Update Client"
|
|
maintainer="rogi <rogi@skylittlesystem.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.noip.com"
|
|
distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
|
|
checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
|
|
|
|
do_build() {
|
|
make CC=$CC PREFIX=/usr LIBS="$CFLAGS $LDFLAGS"
|
|
}
|
|
do_install() {
|
|
vbin noip2
|
|
vsv noip2
|
|
}
|