void-packages/srcpkgs/xf86-video-fbdev/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

22 lines
618 B
Bash

# Template file for 'xf86-video-fbdev'
pkgname=xf86-video-fbdev
version=0.5.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="xorg-server-devel"
depends="virtual?xserver-abi-video-24_1"
short_desc="Xorg framebuffer video driver"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://xorg.freedesktop.org"
distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
checksum=dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699
lib32disabled=yes
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/xorg"
LDFLAGS="-Wl,-z,lazy"
post_install() {
vlicense COPYING
}