void-packages/srcpkgs/beets/template
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: 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

25 lines
972 B
Bash

# Template file for 'beets'
pkgname=beets
version=1.4.9
revision=4
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-munkres python3-musicbrainzngs
python3-Unidecode python3-yaml python3-jellyfish python3-six python3-mutagen"
# test_web is failing
checkdepends="$depends python3-discogs_client python3-mpd2 python3-xdg
python3-rarfile python3-pylast python3-gobject python3-mock python3-Flask
python3-BeautifulSoup4 python3-itsdangerous python3-click python3-Werkzeug
python3-Jinja2 python3-soupsieve python3-MarkupSafe"
short_desc="Media library management system for obsessive-compulsive music geeks"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://beets.radbox.org/"
distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d29b432cab0c80947b5229f548762948c4dd4a430e5d02760bfeb95da3cc8054
post_install() {
vman man/beet.1
vman man/beetsconfig.5
vlicense LICENSE
}