3353bf4722
```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 ```
26 lines
669 B
Bash
26 lines
669 B
Bash
# Template file for 'xf86-video-mga'
|
|
pkgname=xf86-video-mga
|
|
version=2.0.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config xorg-util-macros"
|
|
makedepends="xorg-server-devel"
|
|
depends="virtual?xserver-abi-video-24_1"
|
|
short_desc="Xorg Matrox Graphics Adapter video driver"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://xorg.freedesktop.org"
|
|
distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
|
|
checksum=268946e1a13e9d80e4f724a0740df9e6e8c8bad37697fcbf456924e9fdbb5d79
|
|
lib32disabled=yes
|
|
|
|
LDFLAGS="-Wl,-z,lazy"
|
|
CFLAGS="-fcommon"
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|