void-packages/srcpkgs/i3status/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

29 lines
920 B
Bash

# Template file for 'i3status'
pkgname=i3status
version=2.13
revision=2
build_style=gnu-configure
configure_args="--disable-builddir $(vopt_enable pulseaudio)"
hostmakedepends="automake asciidoc pkg-config xmlto"
makedepends="alsa-lib-devel confuse-devel libcap-devel libnl3-devel
yajl-devel $(vopt_if pulseaudio pulseaudio-devel)"
depends="libcap-progs"
short_desc="Status bar generator for i3bar, dzen2, xmobar or similar programs"
maintainer="Lugubris <lugubris@disroot.org>"
license="BSD-3-Clause"
homepage="https://www.i3wm.org/i3status/"
#changelog="https://raw.githubusercontent.com/i3/i3status/master/CHANGELOG"
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
checksum=ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
conf_files="/etc/i3status.conf"
build_options="pulseaudio"
build_options_default="pulseaudio"
pre_configure() {
autoreconf -vfi
}
post_install() {
vlicense LICENSE
}