void-packages/srcpkgs/yabar/template
Đoàn Trần Công Danh ad877a7e29 srcpkgs/y*: 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

23 lines
743 B
Bash

# Template file for 'yabar'
pkgname=yabar
version=0.4.0
revision=1
build_style=gnu-makefile
make_use_env=yes
make_build_args="VERSION=$version"
hostmakedepends="pkg-config glib-devel asciidoc"
makedepends="alsa-lib-devel gdk-pixbuf-devel libconfig-devel pango-devel xcb-util-wm-devel"
short_desc="Modern and lightweight status bar for X window managers"
maintainer='shizonic <realtiaz@gmail.com>'
license="MIT"
homepage="https://github.com/geommer/yabar"
distfiles="https://github.com/geommer/${pkgname}/archive/${version}.tar.gz"
checksum=f8cc613413328af78944ccb8063a5ba8e6be11797a883c419876e973e102fed0
post_install() {
vdoc README.md
vsconf examples/example.config
vsconf examples/internal1.config
vman doc/yabar.1
vlicense LICENSE
}