void-packages/srcpkgs/igt-gpu-tools/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

36 lines
1.2 KiB
Bash

# Template file for 'igt-gpu-tools'
pkgname=igt-gpu-tools
version=1.25
revision=4
build_style=meson
configure_args="-Db_ndebug=false -Db_lto=false"
# b_lto=true makes the build hang at a random point
hostmakedepends="pkg-config flex peg python3-docutils gtk-doc"
makedepends="libdrm-devel libkmod-devel liboping-devel procps-ng-devel libunwind-devel
elfutils-devel pixman-devel valgrind-devel cairo-devel xmlrpc-c-devel gsl-devel
alsa-lib-devel json-c-devel libXrandr-devel"
short_desc="Tools for development and testing of the DRM drivers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/drm/igt-gpu-tools"
distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.xz"
checksum=40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11
# tests don't behave in containers
make_check=ci-skip
lib32disabled=yes
archs="i686* x86_64*"
if [ -z "${XBPS_CHECK_PKGS}" ]; then
configure_args+=" -Dbuild_tests=disabled -Dbuild_runner=disabled -Dbuild_docs=disabled"
fi
post_install() {
vlicense COPYING
}
intel-gpu-tools_package() {
depends="igt-gpu-tools>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
build_style=meta
}