void-packages/srcpkgs/katarakt/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

25 lines
757 B
Bash

# Template file for 'katarakt'
pkgname=katarakt
version=0.2
revision=3
wrksrc="katarakt-v${version}"
build_style=qmake
hostmakedepends="qt5-qmake pkg-config asciidoc qt5-host-tools"
makedepends="qt5-devel poppler-qt5-devel"
short_desc="Simple PDF viewer"
maintainer="Lukas Braun <void-packages@moshbit.net>"
license="BSD-2-Clause"
homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
#distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
post_build() {
make doc
}
do_install() {
vbin katarakt
vman doc/katarakt.1
vlicense LICENSE
}