```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
```
19 lines
565 B
Bash
19 lines
565 B
Bash
# Template file for 'shmux'
|
|
pkgname=shmux
|
|
version=1.0.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
makedepends="ncurses-devel pcre-devel"
|
|
short_desc="Shell multiplexer (parallel SSH)"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/shmux/shmux"
|
|
distfiles="https://github.com/shmux/shmux/archive/v${version}.tar.gz"
|
|
checksum=c9f8863e2550e23e633cf5fc7a9c4c52d287059f424ef78aba6ecd98390fb9ab
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsconf ${DESTDIR}/usr/share/${pkgname}/mcmd.sh
|
|
rm -f ${DESTDIR}/usr/share/${pkgname}/mcmd.sh
|
|
}
|