* gcc is kept at -Np0, because of void-cross ```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 ```
16 lines
527 B
Bash
16 lines
527 B
Bash
# Template file for 'git-mediate'
|
|
pkgname=git-mediate
|
|
version=1.0.8
|
|
revision=4
|
|
build_style=haskell-stack
|
|
stackage="lts-16.13"
|
|
depends="git"
|
|
short_desc="Tool to help resolving git conflicts"
|
|
maintainer="Peter Wang <novalazy@gmail.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/Peaker/git-mediate"
|
|
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=81220f7e20a3913bc147b69681666ad22e60e5b759a1becad78ee28dcad8013d
|
|
nocross=yes
|
|
nopie_files="/usr/bin/git-mediate"
|