void-packages/srcpkgs/pps-tools/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par 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

19 lines
540 B
Bash

# Template file for 'pps-tools'
pkgname=pps-tools
reverts="20120407_1 20120407_2"
version=1.0.2
revision=1
build_style=gnu-makefile
short_desc="Tools for LinuxPPS (pulse-per-second)"
maintainer="uriahheep <uriahheep@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://linuxpps.org/"
distfiles="https://github.com/ago/pps-tools/archive/v${version}.tar.gz"
checksum=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
pps-tools-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}