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

15 lines
531 B
Bash

# Template file for 'bitwise'
pkgname=bitwise
version=0.42
revision=1
wrksrc="${pkgname}-v${version}"
build_style=gnu-configure
makedepends="ncurses-devel readline-devel"
checkdepends="bcunit-devel"
short_desc="Terminal based bit manipulator in ncurses"
maintainer="shtayerc <david.murko@mailbox.org>"
license="GPL-3.0-only"
homepage="https://github.com/mellowcandle/bitwise"
distfiles="${homepage}/releases/download/v${version}/bitwise-v${version}.tar.gz"
checksum=d3d43cef47bf8f49e85f7ed381c3eaf1df921ca51805e0962f1a97a517e1d1d2