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

23 lines
526 B
Bash

# Template file for 'beep'
pkgname=beep
version=1.3
revision=6
build_style=gnu-makefile
make_build_args="beep"
depends="libcap-progs"
short_desc="Beep music composer"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="http://www.johnath.com/beep/"
distfiles="http://www.johnath.com/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d
post_extract() {
rm -f Makefile
}
do_install() {
vbin beep
gunzip beep.1.gz
vman beep.1
}