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

24 lines
771 B
Bash

# Template file for 'xf86-video-fbturbo'
pkgname=xf86-video-fbturbo
version=0.4.0
revision=17
build_style=gnu-configure
short_desc="Xorg DDX driver for ARM devices (RaspberryPi/Allwinner)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, GPL-2.0-or-later"
homepage="http://github.com/ssvb/xf86-video-fbturbo"
distfiles="https://github.com/ssvb/xf86-video-fbturbo/archive/${version}.tar.gz"
checksum=10411686de0a9d8b2cde300b0d68e9f1d22e3611470d357ef3afc337f123ca0f
archs="armv6l* armv7l* aarch64*"
hostmakedepends="pkg-config xorg-server-devel"
makedepends="libXrandr-devel xorg-server-devel"
depends="virtual?xserver-abi-video-24_1"
LDFLAGS="-Wl,-z,lazy"
post_install() {
vinstall xorg.conf 644 usr/share/X11/xorg.conf.d 99-fbturbo.conf
vlicense COPYING
}