void-packages/srcpkgs/darkice/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid 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

23 lines
948 B
Bash

# Template file for 'darkice'
pkgname=darkice
version=1.3
revision=3
build_style=gnu-configure
configure_args="
--with-lame-prefix=${XBPS_CROSS_BASE}/usr
--with-vorbis-prefix=${XBPS_CROSS_BASE}/usr
--with-faac-prefix=${XBPS_CROSS_BASE}/usr
--with-alsa-prefix=${XBPS_CROSS_BASE}/usr
--with-pulseaudio-prefix=${XBPS_CROSS_BASE}/usr
--with-jack-prefix=${XBPS_CROSS_BASE}/usr
--with-samplerate-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config"
makedepends="lame-devel libogg-devel libvorbis-devel faac-devel
alsa-lib-devel pulseaudio-devel jack-devel libsamplerate-devel"
conf_files="/etc/darkice.cfg"
short_desc="Live audio streamer source client for icecast"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.darkice.org"
distfiles="${SOURCEFORGE_SITE}/project/darkice/darkice/${version}/darkice-${version}.tar.gz"
checksum=2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6