void-packages/srcpkgs/dvd+rw-tools/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid 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

22 lines
588 B
Bash

# Template file for 'dvd+rw-tools'
pkgname=dvd+rw-tools
version=7.1
revision=5
build_style=gnu-makefile
hostmakedepends="m4"
short_desc="Tools for DVD+RW/-RW drives"
maintainer="Duncaen <mail@duncano.de>"
license="GPL-2.0-or-later"
homepage="http://fy.chalmers.se/~appro/linux/DVD+RW/"
distfiles="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${pkgname}-${version}.tar.gz"
checksum=f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca
do_install() {
vbin growisofs
vbin dvd+rw-booktype
vbin dvd+rw-format
vbin dvd+rw-mediainfo
vbin dvd-ram-control
vman growisofs.1
}