```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
766 B
Bash
27 lines
766 B
Bash
# Template file for 'xinit'
|
|
pkgname=xinit
|
|
version=1.4.1
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-xinitdir=/etc/X11/xinit"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel"
|
|
short_desc="X init program"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://xorgwiki.freedesktop.org/xorg"
|
|
distfiles="${XORG_SITE}/app/${pkgname}-${version}.tar.bz2"
|
|
checksum=de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9
|
|
|
|
conf_files="
|
|
/etc/X11/xinit/xinitrc
|
|
/etc/X11/xinit/xserverrc
|
|
/etc/skel/.xinitrc
|
|
/etc/skel/.xsession"
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/xinitrc 644 etc/skel .xinitrc
|
|
vinstall ${FILESDIR}/xsession 644 etc/skel .xsession
|
|
vinstall ${FILESDIR}/xserverrc 644 etc/X11/xinit
|
|
vlicense COPYING
|
|
}
|