2fd8d4df94
```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 ```
20 lines
636 B
Bash
20 lines
636 B
Bash
# Template file for 'oksh'
|
|
pkgname=oksh
|
|
version=6.9
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="ncurses-devel"
|
|
short_desc="Portable OpenBSD ksh, based on the Public Domain Korn Shell"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Public Domain"
|
|
homepage="https://github.com/ibara/oksh"
|
|
distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz"
|
|
checksum=c08d97b2ac9ee5d88e9e508d27c75502b2d06c20d4c5ab87b496cb3b9951bd35
|
|
register_shell="/bin/oksh"
|
|
|
|
alternatives="
|
|
ksh:ksh:/usr/bin/oksh
|
|
ksh:ksh.1:/usr/share/man/man1/oksh.1
|
|
sh:sh:/usr/bin/oksh
|
|
sh:sh.1:/usr/share/man/man1/oksh.1
|
|
"
|