void-packages/srcpkgs/flowcanvas/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

25 lines
781 B
Bash

# Template file for 'flowcanvas'
pkgname=flowcanvas
version=0.7.1
revision=9
build_style=waf
hostmakedepends="pkg-config python"
makedepends="gtkmm2-devel libgnomecanvasmm-devel graphviz-devel boost-devel"
short_desc="Interactive canvas widget for boxes-and-lines style environments"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://drobilla.net/software/flowcanvas/"
distfiles="http://download.drobilla.net/${pkgname}-${version}.tar.bz2"
checksum=047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596
CXXFLAGS="-std=c++11"
flowcanvas-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}