* daemontools and dmraid 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 ```
37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
# Template file for 'dbus-glib'
|
|
pkgname=dbus-glib
|
|
version=0.110
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-bash-completion"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libglib-devel dbus-devel"
|
|
depends="dbus"
|
|
short_desc="GLib bindings for D-Bus"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2"
|
|
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
|
|
distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=7ce4760cf66c69148f6bd6c92feaabb8812dee30846b24cd0f7395c436d7e825
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-dbus-binding-tool=dbus-binding-tool"
|
|
hostmakedepends+=" dbus-glib-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Disable examples.
|
|
sed -e 's,SUBDIRS = . examples, SUBDIRS = .,' -i dbus/Makefile.in
|
|
}
|
|
|
|
dbus-glib-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove usr/share
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|