```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 ```
26 lines
773 B
Bash
26 lines
773 B
Bash
# Template file for 'libax25'
|
|
pkgname=libax25
|
|
_distver=0.0.12
|
|
_patchver=rc4
|
|
version="${_distver}${_patchver}"
|
|
revision=1
|
|
wrksrc="${pkgname}-${_distver}-${_patchver}"
|
|
build_style=gnu-configure
|
|
makedepends="zlib-devel"
|
|
short_desc="A set of functions making it easier to write hamradio programs"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="LGPL-2"
|
|
homepage="http://www.linux-ax25.org/wiki/Libax25"
|
|
distfiles="http://www.linux-ax25.org/pub/libax25/${wrksrc}.tar.gz"
|
|
checksum=051bd736c3f3f3b242b3efea91af37f2e8d5afaebb5fe6e1df050bb1f6aeb986
|
|
|
|
libax25-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libax25>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/*.a
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|