```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 ```
22 lines
644 B
Bash
22 lines
644 B
Bash
# Template file for 'libnl'
|
|
pkgname=libnl
|
|
version=1.1.4
|
|
revision=4
|
|
build_style=gnu-configure
|
|
short_desc="Library for applications dealing with netlink sockets"
|
|
homepage="http://www.infradead.org/~tgr/libnl/"
|
|
license="LGPL-2.1-only"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
|
|
checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
|
|
|
|
libnl-devel_package() {
|
|
depends="libnl>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|