```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 ```
22 lines
618 B
Bash
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
|
|
}
|