861ac185a6
```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 ```
51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
# Template file for 'ladspa-sdk'
|
|
pkgname=ladspa-sdk
|
|
version=1.15
|
|
revision=3
|
|
wrksrc="ladspa_sdk_${version}"
|
|
makedepends="libsndfile-progs"
|
|
short_desc="Linux Audio Developer's Simple Plugin API (LADSPA)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://www.ladspa.org/"
|
|
distfiles="http://www.ladspa.org/download/ladspa_sdk_${version}.tgz"
|
|
checksum=4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
|
|
|
|
do_build() {
|
|
make CC=$CC CPP=$CXX LD=$LD -C src
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/include
|
|
vcopy src/ladspa.h usr/include
|
|
}
|
|
|
|
ladspa-sdk-doc_package() {
|
|
depends="ladspa-sdk"
|
|
short_desc+="- Documentation"
|
|
pkg_install() {
|
|
vmkdir usr/share/doc
|
|
cd ${wrksrc}/doc
|
|
rm ladspa.h.txt
|
|
ln -s /usr/include/ladspa.h ladspa.h.txt
|
|
vcopy ${wrksrc}/doc usr/share/doc/ladspa
|
|
}
|
|
}
|
|
|
|
ladspa-sdk-example-plugins_package() {
|
|
short_desc+=" - Example plugins"
|
|
archs="*"
|
|
pkg_install() {
|
|
vmkdir usr/lib/ladspa
|
|
vcopy "${wrksrc}/plugins/*.so*" usr/lib/ladspa
|
|
}
|
|
}
|
|
|
|
ladspa-sdk-progs_package() {
|
|
short_desc+=" - Example programs"
|
|
archs="*"
|
|
pkg_install() {
|
|
vmkdir usr
|
|
vcopy ${wrksrc}/bin usr
|
|
}
|
|
}
|