void-packages/srcpkgs/mftrace/template
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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

14 lines
484 B
Bash

# Template file for 'mftrace'
pkgname=mftrace
version=1.2.20
revision=1
build_style=gnu-configure
hostmakedepends="python3 potrace"
depends="${hostmakedepends}"
short_desc="Trace a TeX bitmap font into PFA/PFB/TTF"
maintainer="svenper <svenper@tuta.io>"
license="GPL-2.0-or-later"
homepage="http://lilypond.org/mftrace"
distfiles="http://lilypond.org/downloads/sources/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=626b7a9945a768c086195ba392632a68d6af5ea24ef525dcd0a4a8b199ea5f6f