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 ```
22 lines
711 B
Bash
22 lines
711 B
Bash
# Template file for 'cli-visualizer'
|
|
pkgname=cli-visualizer
|
|
version=1.8
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DCXX_COLOR_SUPPORTED=NO"
|
|
makedepends="fftw-devel ncurses-devel $(vopt_if pulseaudio 'pulseaudio-devel')"
|
|
short_desc="CLI based audio visualizer"
|
|
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/dpayne/cli-visualizer"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
|
|
build_options="pulseaudio"
|
|
build_options_default="pulseaudio"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
# package 'vis' has rights to /usr/bin/vis
|
|
mv ${DESTDIR}/usr/bin/vis ${DESTDIR}/usr/bin/cli-visualizer
|
|
}
|