void-packages/srcpkgs/sonata/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

13 lines
525 B
Bash

# Template file for 'sonata'
pkgname=sonata
version=1.7b1
revision=4
build_style=python3-module
hostmakedepends="gettext python3-setuptools"
depends="python3-mpd2 python3-gobject gtk+3 ${hostmakedepends}"
short_desc="Elegant GTK 3 client for the Music Player Daemon"
maintainer="Jens E. Becker <v2px@v2px.de>"
license="GPL-3.0-or-later"
homepage="http://www.nongnu.org/sonata/"
distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d