c987560802
```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 ```
25 lines
895 B
Bash
25 lines
895 B
Bash
# Template file for 'cadence'
|
|
pkgname=cadence
|
|
version=0.9.1
|
|
revision=1
|
|
wrksrc="Cadence-${version}"
|
|
build_style=gnu-makefile
|
|
python_version=3
|
|
pycompile_dirs="usr/share/cadence/src"
|
|
hostmakedepends="pkg-config qt5-host-tools python3-PyQt5-devel-tools"
|
|
makedepends="jack-devel ladish-devel pulseaudio-devel qt5-devel"
|
|
depends="a2jmidid desktop-file-utils hicolor-icon-theme jack python3-PyQt5-dbus
|
|
python3-PyQt5-svg"
|
|
short_desc="Set of tools useful for audio production"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://kxstudio.linuxaudio.org/Applications:Cadence"
|
|
distfiles="https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"
|
|
checksum=e530787ded0d53a3004c7a8260114ddb970c2aea43875d62eccd599ac96e1fd1
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) ;;
|
|
*) sed -i -e 's/-mtune=generic -msse -mfpmath=sse//' c++/Makefile.mk ;;
|
|
esac
|
|
}
|