ec4c2d75fa
```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 ```
28 lines
924 B
Bash
28 lines
924 B
Bash
# Template file for 'PAmix'
|
|
pkgname=PAmix
|
|
version=1.6
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args='-DWITH_UNICODE=1 -DNCURSESW_H_INCLUDE=ncurses.h'
|
|
hostmakedepends="pkg-config automake autoconf-archive"
|
|
makedepends="pulseaudio-devel ncurses-devel"
|
|
conf_files="/etc/pamix.conf"
|
|
short_desc="Ncurses/Curses Pulseaudio mixer in C++ similar to Pavucontrol"
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/patroclos/PAmix"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=b63522889d70920d64229c66e2ab6929950476538443af297f6b242f7e9dc406
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
*-musl) broken="Parts of ncurses, not available on musl";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
# REMARKS:
|
|
# Named PAmix instead of pamix to match upstream and prevent misassociation
|
|
# with Pluggable Authentication Modules
|
|
# configure_args as suggested by https://github.com/patroclos/PAmix/issues/37
|