void-packages/srcpkgs/atomicparsley/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

19 lines
566 B
Bash

# Template file for 'atomicparsley'
pkgname=atomicparsley
version=0.9.6
revision=1
wrksrc=wez-atomicparsley-da2f6e4fc120
build_style=gnu-configure
hostmakedepends="automake"
makedepends="zlib-devel"
short_desc="Lightweight program for manipulating MPEG-4 metadata"
maintainer="svenper <svenper@tuta.io>"
license="GPL-2.0-or-later"
homepage="https://bitbucket.org/wez/atomicparsley/"
distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz"
checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab
pre_configure() {
./autogen.sh
}