void-packages/srcpkgs/kwallet-cli/template
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: 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

30 lines
792 B
Bash

# Template file for 'kwallet-cli'
pkgname=kwallet-cli
version=3.03
revision=1
wrksrc=kwalletcli
build_style=gnu-makefile
make_build_args="KDE_VER=5"
hostmakedepends="pkg-config"
makedepends="kwallet-devel qt5-devel"
depends="mksh"
short_desc="Command-line interface to the KDE Wallet"
maintainer="Louis Dupré Bertoni <contact@louis.xyz>"
license="custom:MirOS, LGPL-3.0-or-later"
homepage="https://www.mirbsd.org/kwalletcli.htm"
distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz"
checksum=f228e5b179f6eb92289b9635382e676990dd58cd193ce42b61d3150c8a06b12d
post_patch() {
vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g"
}
pre_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
}
post_install() {
vlicense LICENCE
}