void-packages/srcpkgs/lltag/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

16 lines
559 B
Bash

# Template file for 'lltag'
pkgname=lltag
version=0.14.6
revision=3
wrksrc="lltag-lltag-${version}"
build_style=gnu-makefile
hostmakedepends="perl"
makedepends="${hostmakedepends}"
depends="perl mp3info vorbis-tools flac perl-MP3-Tag"
short_desc="Automatic command-line mp3/ogg/flac file tagger and renamer"
maintainer="eater <=@eater.me>"
license="GPL-2.0-or-later"
homepage="http://bgoglin.free.fr/lltag/"
distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252