void-packages/srcpkgs/w_scan/template
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine 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

19 lines
529 B
Bash

# Template file for 'w_scan'
pkgname=w_scan
version=20170107
revision=1
build_style="gnu-configure"
hostmakedepends="automake libtool"
short_desc="Universal ATSC and DVB blind scanner"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
license="GPL-2.0-only"
homepage="http://wirbel.htpc-forum.de/w_scan/index2.html"
distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
checksum="38e0f38a7bf06cff6d6ea01652ad4ee60da2cb0e937360468f936da785b46ffe"
CFLAGS="-fcommon"
pre_configure() {
autoreconf -if
}