void-packages/srcpkgs/png++/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par 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

27 lines
638 B
Bash

# Template file for 'png++'
pkgname=png++
version=0.2.10
revision=1
build_style=gnu-makefile
make_build_target="docs"
make_use_env=yes
hostmakedepends="doxygen"
depends="libpng-devel"
short_desc="C++ wrapper for libpng library"
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.nongnu.org/pngpp"
distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
checksum=998af216ab16ebb88543fbaa2dbb9175855e944775b66f2996fc945c8444eee1
post_install() {
vlicense COPYING
}
png++-doc_package() {
short_desc+=" - documentation"
depends="${sourcepkg}"
pkg_install() {
vmove usr/share
}
}