765e304c4b
```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 ```
25 lines
647 B
Bash
25 lines
647 B
Bash
# Template file for 'minissdpd'
|
|
pkgname=minissdpd
|
|
version=1.5
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="libnfnetlink-devel"
|
|
short_desc="MiniSSDP Daemon to speed up UPnP device discovery"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="3-clause-BSD"
|
|
homepage="http://miniupnp.free.fr/minissdpd.html"
|
|
distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
|
|
checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
|
|
|
|
CFLAGS="-D_GNU_SOURCE"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
do_install() {
|
|
vbin minissdpd
|
|
vman minissdpd.1
|
|
vlicense LICENSE
|
|
vsv minissdpd
|
|
}
|