void-packages/srcpkgs/qtav/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

25 lines
948 B
Bash

# Template file for 'qtav'
pkgname=qtav
version=1.13.0
revision=1
wrksrc="QtAV-${version}"
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="ffmpeg-devel libass-devel libopenal-devel
libva-glx-devel libXv-devel pulseaudio-devel
qt5-declarative-devel qt5-svg-devel
qt5-quickcontrols"
depends="desktop-file-utils hicolor-icon-theme qt5-svg"
short_desc="Cross-platform multimedia playback framework based on Qt and FFmpeg"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, GPL-3.0-or-later"
homepage="http://www.qtav.org"
changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
checksum=a493d54d105b32c526f05188e4d7a8cf3508ecac697aae088721ffad20982288
post_install() {
vmkdir usr/bin
ln -s /usr/lib/qt5/bin/Player ${DESTDIR}/usr/bin/Player
ln -s /usr/lib/qt5/bin/QMLPlayer ${DESTDIR}/usr/bin/QMLPlayer
}