861ac185a6
```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
601 B
Bash
19 lines
601 B
Bash
# Template file for 'ldapvi'
|
|
pkgname=ldapvi
|
|
version=1.7
|
|
revision=11
|
|
build_style=gnu-configure
|
|
configure_args="--with-sha"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ncurses-devel readline-devel libsasl-devel popt-devel libldap-devel glib-devel"
|
|
license="GPL-2"
|
|
homepage="http://www.lichteblau.com/ldapvi/"
|
|
short_desc="An interactive LDAP client for Unix terminals"
|
|
distfiles="http://www.lichteblau.com/download/ldapvi-${version}.tar.gz"
|
|
checksum=6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153
|
|
|
|
do_install() {
|
|
vbin ldapvi
|
|
vman ldapvi.1
|
|
}
|