void-packages/srcpkgs/xava/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

25 lines
712 B
Bash

# Template file for 'xava'
pkgname=xava
version=0.6.3.1
revision=1
build_style=cmake
hostmakedepends="automake libtool pkg-config"
makedepends="SDL2-devel iniparser-devel ncurses-devel sndio-devel portaudio-devel"
short_desc="X11 Audio Visualizer for ALSA"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/nikp123/xava"
distfiles="https://github.com/nikp123/xava/archive/${version}.tar.gz"
checksum=b38b810e4bfd71aff44f223b444ae4f158eb8d6428c5e9d42697343ccb5a19f9
post_install() {
vlicense LICENSE
vmkdir usr/share/examples
vcopy example_files/etc usr/share/examples/xava
}
cava-gui_package() {
depends="xava"
short_desc+=" - transition package"
build_style=meta
}