void-packages/srcpkgs/iotop/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

17 lines
508 B
Bash

# Template file for 'iotop'
pkgname=iotop
version=0.6
revision=8
build_style=python3-module
hostmakedepends="python3"
depends="${hostmakedepends}"
short_desc="View I/O usage of processes"
maintainer="teldra <teldra@rotce.de>"
license="GPL-2.0-or-later"
homepage="http://guichaz.free.fr/iotop"
distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
post_install() {
chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
}