void-packages/srcpkgs/pidgin-sipe/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```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
```
2021-06-20 13:17:29 +07:00

16 lines
652 B
Bash

# Template file for 'pidgin-sipe'
pkgname=pidgin-sipe
version=1.25.0
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="pidgin-devel openssl-devel libxml2-devel dbus-glib-devel
libnice-devel gst-plugins-base1-devel farstream-devel"
depends="pidgin gst-plugins-bad1 gst-libav gst-plugins-good1 gst-plugins-ugly1"
short_desc="SIP/SIMPLE plugin for Pidgin IM"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://sipe.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/sipe/sipe/${pkgname}-${version}.tar.xz"
checksum=738b121b11f2b3f1744150c00cb381222eb6cf67161a7742797eb4f03e64a2ba