```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 ```
21 lines
581 B
Bash
21 lines
581 B
Bash
# Template file for 'unison'
|
|
pkgname="unison"
|
|
version=2.51.3
|
|
revision=1
|
|
hostmakedepends="ocaml"
|
|
short_desc="A file-synchronization tool"
|
|
maintainer="allan <mail@may.mooo.com>"
|
|
license="GPL-3"
|
|
homepage="http://www.cis.upenn.edu/~bcpierce/unison/"
|
|
distfiles="https://github.com/bcpierce00/unison/archive/v${version}.tar.gz"
|
|
checksum=0c287d17f52729440b2bdc28edf4d19b2d5ea5869983d78e780d501c5866914b
|
|
nocross="OCaml does not cross compile"
|
|
|
|
do_build() {
|
|
CFLAGS= make ${makejobs} UISTYLE=text DEBUGGING=false THREADS=true
|
|
}
|
|
|
|
do_install() {
|
|
vbin src/unison
|
|
vbin src/unison-fsmonitor
|
|
}
|