void-packages/srcpkgs/faust/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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
```
2021-06-20 13:17:29 +07:00

28 lines
1,005 B
Bash

# Template file for 'faust'
pkgname=faust
version=2.30.5
revision=1
build_style=gnu-makefile
hostmakedepends="cmake pkg-config llvm"
makedepends="libmicrohttpd-devel llvm-libunwind-devel"
short_desc="Functional Programming Language for Real Time Signal Processing"
maintainer="mag <mag-one@autistici.org>"
license="GPL-2.0-or-later"
homepage="http://faust.grame.fr/"
distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
checksum="6cf64b8ee92c2db74d7d83d726b0ecb6f7e141deeadf4cd40c60e467893e0bfc"
# Android stuffs, used by the 'faust2android' script.
nostrip_files="libsndfile.so "
noverifyrdeps="libsndfile.so"
skiprdeps="/usr/lib/faust/android/app/lib/libsndfile/lib/armeabi-v7a/libsndfile.so
/usr/lib/faust/android/app/lib/libsndfile/lib/arm64-v8a/libsndfile.so"
case $XBPS_TARGET_MACHINE in
*-musl) makedepends+=" libexecinfo-devel";;
esac
post_install() {
mv $PKGDESTDIR/usr/share/faust $PKGDESTDIR/usr/lib
vcopy examples usr/lib/${pkgname}
}