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

27 lines
758 B
Bash

# Template file for 'xf86-video-ati'
pkgname=xf86-video-ati
version=19.1.0
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="xorgproto eudev-libudev-devel libpciaccess-devel
libdrm-devel pixman-devel MesaLib-devel xorg-server-devel"
depends="virtual?xserver-abi-video-24_1 mesa-dri"
short_desc="Xorg ATI Radeon video driver"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://wiki.freedesktop.org/xorg"
distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
checksum=659f5a1629eea5f5334d9b39b18e6807a63aa1efa33c1236d9cc53acbb223c49
lib32disabled=yes
CFLAGS="-fcommon"
LDFLAGS="-Wl,-z,lazy"
case "$XBPS_TARGET_MACHINE" in
armv6*) broken="no dri.h";;
esac
post_install() {
vlicense COPYING
}