void-packages/srcpkgs/apvlv/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

17 lines
643 B
Bash

# Template file for 'apvlv'
pkgname=apvlv
version=0.2.0
revision=1
build_style=cmake
configure_args="-DAPVLV_WITH_UMD=no -DAPVLV_WITH_DJVU=yes -DAPVLV_WITH_TXT=yes"
hostmakedepends="pkg-config"
makedepends="gtk+3-devel poppler-glib-devel djvulibre-devel webkit2gtk-devel ebook-tools-devel"
depends="desktop-file-utils"
short_desc="Vim-like PDF/DJVU/TXT viewer"
maintainer="Logen K <logen@sudotask.com>"
license="GPL-2.0-only"
homepage="http://naihe2010.github.io/apvlv/"
distfiles="https://github.com/naihe2010/apvlv/archive/v${version}.tar.gz"
checksum=a4a2f42a7e42715a21d2356def3ed93c180c6ae41128580addee42835e5374c2
replaces="apvlv-git>=0"