* runit is kept at -Np0 ```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
754 B
Bash
29 lines
754 B
Bash
# Template file for 'rabbitmq-c'
|
|
pkgname=rabbitmq-c
|
|
version=0.10.0
|
|
revision=2
|
|
build_style=cmake
|
|
make_check_target=test
|
|
hostmakedepends="popt xmlto doxygen"
|
|
makedepends="openssl-devel"
|
|
short_desc="RabbitMQ C client"
|
|
maintainer="Hans-J. Schmid <knock@myopendoor.de>"
|
|
license="MIT"
|
|
homepage="https://github.com/alanxz/rabbitmq-c"
|
|
distfiles="https://github.com/alanxz/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
|
|
|
|
post_install() {
|
|
vlicense LICENSE-MIT LICENSE
|
|
}
|
|
|
|
rabbitmq-c-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"
|
|
}
|
|
}
|