void-packages/srcpkgs/xf86-video-intel/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

31 lines
987 B
Bash

# Template file for 'xf86-video-intel'
pkgname=xf86-video-intel
version=2.99.917.20210115
revision=1
_commit=31486f40f8e8f8923ca0799aea84b58799754564
archs="i686* x86_64*"
wrksrc="xf86-video-intel-master-${_commit}"
build_style=gnu-configure
configure_args="--with-default-dri=3"
hostmakedepends="git automake libtool pkg-config xorg-util-macros"
makedepends="libXScrnSaver-devel libXcursor-devel libXinerama-devel
libXrandr-devel libXvMC-devel xorg-server-devel"
depends="virtual?xserver-abi-video-24_1 mesa-dri"
short_desc="Xorg DDX Intel video driver"
maintainer="Benjamin Slade <slade@lambda-y.net>"
license="MIT"
homepage="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/"
distfiles="${homepage}/-/archive/master/xf86-video-intel-${_commit}.tar.gz"
checksum=3cdcf2f84bddf9e9174a8413d8fc855dae893dbc53889329978dec62ee8f6e62
lib32disabled=yes
CFLAGS="-fcommon"
LDFLAGS="-Wl,-z,lazy"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vlicense COPYING
}