49cb564d14
* par 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 ```
26 lines
816 B
Bash
26 lines
816 B
Bash
# Template file for 'pa-applet'
|
|
pkgname=pa-applet
|
|
version=0.0.0.20140304
|
|
revision=2
|
|
_commit=33b413b83234d457b9512219cf4c1020eb99a3de
|
|
wrksrc="$pkgname-$_commit"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="gtk+3-devel libnotify-devel libcanberra-devel pulseaudio-devel"
|
|
short_desc="PulseAudio system tray applet with volume bar"
|
|
maintainer="Alexander Mamay <alexander@mamay.su>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/fernandotcl/pa-applet"
|
|
distfiles="$homepage/archive/$_commit.tar.gz"
|
|
checksum=db30c04a6954e1d138c6bc80739dae80d667a0af151b015db503e48fb30b0b7a
|
|
|
|
pre_configure() {
|
|
sed -i -e 's| -Werror||' src/Makefile.am
|
|
./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vmkdir etc/xdg/autostart
|
|
vinstall ${FILESDIR}/pa-applet.desktop 644 etc/xdg/autostart
|
|
}
|