ad877a7e29
```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 ```
20 lines
716 B
Bash
20 lines
716 B
Bash
# Template file for 'yoshimi'
|
|
pkgname=yoshimi
|
|
version=2.0.1
|
|
revision=1
|
|
build_wrksrc=src
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_INSTALL_DATAROOTDIR=/usr/share"
|
|
hostmakedepends="pkg-config fltk"
|
|
makedepends="boost-devel jack-devel fltk-devel fftw-devel mxml-devel cairo-devel
|
|
lv2 readline-devel ncurses-devel"
|
|
short_desc="ZynAddSubFX fork with improved JACK audio & MIDI IO"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://yoshimi.github.io/"
|
|
distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
|
|
checksum=b80a8b49bdf0e1f6c382627afc46c82d03219b7e45cdecd933e6fc046a939967
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" argp-standalone";;
|
|
esac
|