void-packages/srcpkgs/skroll/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

16 lines
449 B
Bash

# Template file for 'skroll'
pkgname=skroll
version=0.6
revision=2
build_style=gnu-makefile
make_build_args="LD=\${CXX}"
short_desc="Scroll text to stdout"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="WTFPL"
homepage="http://git.z3bra.org/skroll/log.html"
distfiles="http://dl.z3bra.org/releases/${pkgname}-${version}.tar.bz2"
checksum=32221fef51f6814a7bf3cf4207b8a2466624544a2fd1e5b110ee2af3580d2959
post_install() {
vlicense LICENSE
}