e2a21ccfd6
```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 ```
25 lines
693 B
Bash
25 lines
693 B
Bash
# Template file for 'zutils'
|
|
pkgname=zutils
|
|
version=1.10
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="lzip"
|
|
depends="bzip2 gzip lzip xz"
|
|
conf_files="/etc/zutilsrc"
|
|
short_desc="Utilities to deal with compressed files transparently"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.nongnu.org/zutils/zutils.html"
|
|
distfiles="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${version}.tar.lz"
|
|
checksum=0dd44138292d5757648037195b6945c3df70b316221b4285520ad38f2eaeb195
|
|
|
|
post_install() {
|
|
cd ${DESTDIR}/usr/bin
|
|
for f in z*; do
|
|
mv -v $f Z${f#z}
|
|
done
|
|
cd ${DESTDIR}/usr/share/man/man1
|
|
for f in z*; do
|
|
mv -v $f Z${f#z}
|
|
done
|
|
}
|