* arduino and antiword 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 ```
31 lines
798 B
Bash
31 lines
798 B
Bash
# Template file for 'aubio'
|
|
pkgname=aubio
|
|
version=0.4.9
|
|
revision=1
|
|
build_style=waf3
|
|
# XXX lash, pure and swig support.
|
|
hostmakedepends="pkg-config txt2man"
|
|
makedepends="libsamplerate-devel fftw-devel jack-devel ffmpeg-devel"
|
|
short_desc="Library for audio labelling"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://aubio.org"
|
|
distfiles="${homepage}/pub/${pkgname}-${version}.tar.bz2"
|
|
checksum=d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
|
|
|
|
libaubio_package() {
|
|
short_desc+=" - Runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
aubio-devel_package() {
|
|
depends="libaubio-${version}_${revision}"
|
|
short_desc+=" - Development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|