void-packages/srcpkgs/connman-ncurses/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

26 lines
827 B
Bash

# Template file for 'connman-ncurses'
pkgname=connman-ncurses
version=1.0
revision=5
wrksrc="connman-json-client-${version}"
build_style=gnu-configure
hostmakedepends="automake autoconf pkg-config json-c-devel ncurses-devel dbus-devel"
makedepends="json-c-devel ncurses-devel dbus-devel"
depends="dbus connman"
short_desc="Simple ncurses-based UI for ConnMan"
maintainer="Sergei Akhmatdinov <sakhmatd@riseup.net>"
license="GPL-2.0-or-later"
homepage="https://github.com/eurogiciel-oss/connman-json-client"
distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
pre_configure() {
mkdir -p m4
vsed -i Makefile.am -e "s;-Werror;-Wno-error;"
autoreconf -fi
}
do_install() {
vbin connman_ncurses connman-ncurses
}