* runit is kept at -Np0
```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
508 B
Bash
21 lines
508 B
Bash
# Template file for 'rix'
|
|
pkgname=rix
|
|
version=0.3.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="bison flex"
|
|
short_desc="An expressive and efficient language for the C ecosystem"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/riolet/rix"
|
|
distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
|
|
checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
do_install() {
|
|
vbin rixc
|
|
vbin clr.sh
|
|
vbin comp.sh
|
|
}
|