void-packages/srcpkgs/qsstv/template
Đoàn Trần Công Danh 635e9da391 srcpkgs/q*: 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

20 lines
755 B
Bash

# Template file for 'qsstv'
pkgname=qsstv
version=9.5.3
revision=1
wrksrc="${pkgname}_${version}"
build_style=qmake
hostmakedepends="pkg-config qt5-qmake qt5-host-tools unzip"
makedepends="alsa-lib-devel fftw-devel hamlib-devel libopenjpeg2-devel pulseaudio-devel
qt5-devel v4l-utils-devel"
short_desc="Qt-based slow-scan TV and fax"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-or-later"
homepage="http://users.telenet.be/on4qz/qsstv/"
changelog="http://users.telenet.be/on4qz/qsstv/manual/changelog.html"
distfiles="http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz"
checksum=177e286090c71f8a033646b39c3b6abe212cc06718c1ecc9ddc7024198cb7e40
post_install() {
vinstall icons/qsstv.png 644 usr/share/pixmaps
}