void-packages/srcpkgs/lttng-tools/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

29 lines
870 B
Bash

# Template file for 'lttng-tools'
pkgname=lttng-tools
version=2.12.4
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libxml2-devel lttng-modules-dkms lttng-ust-devel popt-devel
libuuid-devel"
short_desc="Set of tools to control LTTng tracing"
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
license="LGPL-2.1-only, GPL-2.0-only"
homepage="https://lttng.org"
distfiles="${homepage}/files/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1
# tests timeout
make_check=no
system_groups="tracing"
lttng-tools-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}