void-packages/srcpkgs/vapoursynth-editor/template
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: convert patches to -Np1
```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

31 lines
928 B
Bash

# Template file for 'vapoursynth-editor'
pkgname=vapoursynth-editor
version=19
revision=1
_bitbucket_hash=8019bb5a8099
wrksrc="mystery_keeper-${pkgname}-${_bitbucket_hash}"
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="vapoursynth-devel qt5-devel qt5-websockets-devel"
depends="vapoursynth"
short_desc="Cross-platform editor for VapourSynth script"
maintainer="DirectorX <void.directorx@protonmail.com>"
license="MIT"
homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
distfiles="${homepage}/get/r${version}.tar.gz"
checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342
pre_configure() {
mv pro/pro.pro .
}
do_install() {
find ./ -type f -executable | while read _executable
do
vbin "${_executable}"
done
vlicense LICENSE
vinstall ${FILESDIR}/vapoursynth-editor.desktop 644 usr/share/applications/
vinstall resources/vsedit.svg 644 usr/share/pixmaps/
}