```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
```
27 lines
742 B
Bash
27 lines
742 B
Bash
# Template file for 'xf86-video-mach64'
|
|
pkgname=xf86-video-mach64
|
|
version=6.9.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config xorg-util-macros"
|
|
makedepends="xorgproto xorg-server-devel"
|
|
depends="virtual?xserver-abi-video-24_1"
|
|
short_desc="Xorg ATI Rage Pro video driver"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="MIT"
|
|
homepage="https://wiki.freedesktop.org/xorg"
|
|
distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
|
|
checksum=7a0707c71bb522430f83bb5e9d9ee697e661e35534a3a2d10834f86b327a3c9c
|
|
lib32disabled=yes
|
|
# fails at XORG_DRIVER_CHECK_EXT even though xorg-util-macros is on host
|
|
nocross=yes
|
|
LDFLAGS="-Wl,-z,lazy"
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|