```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 ```
25 lines
852 B
Bash
25 lines
852 B
Bash
# Template file for 'volumeicon'
|
|
pkgname=volumeicon
|
|
version=0.5.1
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--enable-notify"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="alsa-lib-devel libnotify-devel gtk+3-devel"
|
|
short_desc="Lightweight volume control that sits in your systray"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-only, ISC, MIT"
|
|
homepage="http://softwarebakery.com/maato/volumeicon.html"
|
|
distfiles="http://softwarebakery.com/maato/files/volumeicon/volumeicon-${version}.tar.gz"
|
|
checksum=24b8c1d0a81d708b201ce6e67301fc175d65588d892d01859f667b8db8a05da0
|
|
|
|
post_patch() {
|
|
sed -ne '/Copyright/,/IN THE SOFTWARE/s/ [*] *//p' src/bind.c >LICENSE.MIT
|
|
sed -ne '/Copyright/,/OF THIS SOFTWARE/s/ [*] *//p' \
|
|
src/alsa_volume_mapping.c >LICENSE.ISC
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.MIT
|
|
vlicense LICENSE.ISC
|
|
}
|