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

17 lines
532 B
Bash

# Template file for 'ympd'
pkgname=ympd
version=1.3.0
revision=8
build_style=cmake
hostmakedepends="perl pkg-config"
makedepends="libmpdclient-devel openssl-devel"
short_desc="Standalone MPD Web GUI written in C"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-only"
homepage="https://www.ympd.org"
distfiles="https://github.com/notandy/ympd/archive/v${version}.tar.gz"
checksum=d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5
pre_configure() {
vsed -i CMakeLists.txt -e"s;-std=gnu99 -Wall;& -fcommon;"
}