```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 ```
18 lines
565 B
Bash
18 lines
565 B
Bash
# Template file for 'catdoc'
|
|
pkgname=catdoc
|
|
version=0.95
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="tk"
|
|
depends="tk"
|
|
short_desc="Convert Microsoft Office files to text"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.wagner.pp.ru/~vitus/software/catdoc/"
|
|
distfiles="http://ftp.wagner.pp.ru/pub/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796
|
|
|
|
do_install() {
|
|
vmkdir usr/share/man/man1
|
|
make installroot="$DESTDIR" mandir=/usr/share/man install
|
|
}
|