void-packages/srcpkgs/angrysearch/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

28 lines
1 KiB
Bash

# Template file for 'angrysearch'
pkgname=angrysearch
version=1.0.1
revision=3
wrksrc="ANGRYsearch-${version}"
pycompile_dirs="usr/share/angrysearch"
hostmakedepends="python3"
depends="python3-PyQt5 xdg-utils"
short_desc="Instant file search"
maintainer="DirectorX <void.directorx@protonmail.com>"
license="GPL-2.0-only"
homepage="https://github.com/dotheevo/angrysearch/"
distfiles="http://github.com/dotheevo/${pkgname}/archive/v${version}.tar.gz"
checksum=9a550649c3efafb26660860758f2e75702ce96a0a0c50dc34ced2967b51a843f
python_version=3
do_install() {
vinstall angrysearch.desktop 644 "usr/share/applications"
vinstall angrysearch.svg 644 "usr/share/pixmaps"
vinstall scandir.py 644 "usr/share/angrysearch"
vinstall resource_file.py 644 "usr/share/angrysearch"
vinstall qdarkstylesheet.qss 644 "usr/share/angrysearch"
vinstall angrysearch_update_database.py 755 "usr/share/angrysearch"
vinstall angrysearch.py 755 "usr/share/angrysearch"
vmkdir usr/bin/
ln -s ../share/angrysearch/angrysearch.py "$DESTDIR/usr/bin/angrysearch"
}