void-packages/srcpkgs/jack/template
Đoàn Trần Công Danh 1a06b0d5d7 srcpkgs/j*: convert patches to -Np1
```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

49 lines
1.5 KiB
Bash

# Template file for 'jack'
pkgname=jack
version=1.9.18
revision=1
wrksrc="jack2-${version}"
build_style=waf3
configure_args="--alsa --classic --dbus"
hostmakedepends="pkg-config"
makedepends="eigen opus-devel libsamplerate-devel readline-devel
dbus-devel db-devel celt-devel $(vopt_if ffado libffado-devel)
$(vopt_if zalsa 'zita-alsa-pcmi-devel zita-resampler-devel')"
depends="python3-dbus"
short_desc="JACK Audio Connection Kit low-latency sound server (pro audio)"
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://jackaudio.org/"
distfiles="https://github.com/jackaudio/jack2/archive/v${version}.tar.gz"
checksum=5a1d64118034d58529d68a9af42710f9d4843536257c496118065ea3d3e4ae2c
python_version=3
# Package build options
build_options="ffado zalsa"
desc_option_ffado="Enable support for FireWire audio devices"
desc_option_zalsa="Enable support for internal zita-a2j/j2a clients"
post_install() {
# pam_limits(8) support
vinstall ${FILESDIR}/jack-limitsd.conf 644 etc/security/limits.d jack.conf
# audio group permissions for realtime
vinstall ${FILESDIR}/40-hpet-permissions.rules 644 usr/lib/udev/rules.d
}
libjack_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/jack
}
}
jack-devel_package() {
depends="libjack>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}