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 ```
29 lines
672 B
Bash
29 lines
672 B
Bash
# Template file for 'lzf'
|
|
pkgname=lzf
|
|
version=3.6
|
|
revision=1
|
|
wrksrc="lib${pkgname}-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake"
|
|
short_desc="Extremely fast compression algorithm"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://software.schmorp.de/pkg/liblzf.html"
|
|
distfiles="http://dist.schmorp.de/liblzf/lib${pkgname}-${version}.tar.gz"
|
|
checksum=9c5de01f7b9ccae40c3f619d26a7abec9986c06c36d260c179cedd04b89fb46a
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
liblzf-devel_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/liblzf.a
|
|
vmove usr/include
|
|
}
|
|
}
|