```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 ```
28 lines
783 B
Bash
28 lines
783 B
Bash
# Template file for 'libbsd'
|
|
pkgname=libbsd
|
|
version=0.11.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="libmd-devel"
|
|
short_desc="Provides useful functions commonly found on BSD system"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="ISC, MIT, Beerware, BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
|
|
homepage="https://libbsd.freedesktop.org/"
|
|
distfiles="https://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
|
|
checksum=ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
libbsd-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man
|
|
}
|
|
}
|