void-packages/srcpkgs/taskd/template
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: 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

24 lines
658 B
Bash

# Template file for 'taskd'
pkgname=taskd
version=1.1.0
revision=4
build_style=cmake
makedepends="libuuid-devel gnutls-devel"
depends="gnutls-tools"
short_desc="Server for sharing tasks among different clients, primarily Taskwarrior"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT"
homepage="http://taskwarrior.org"
distfiles="http://taskwarrior.org/download/${pkgname}-${version}.tar.gz"
checksum=7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4
system_accounts="taskd"
taskd_homedir="/var/lib/taskd"
make_dirs="/var/lib/taskd 0750 taskd taskd"
post_install() {
vcopy pki usr/share/taskd/
vlicense LICENSE
vsv taskd
}