void-packages/srcpkgs/libixion/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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
738 B
Bash

# Template file for 'libixion'
pkgname=libixion
version=0.16.1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config python3"
makedepends="boost-devel fmt-devel mdds python3-devel spdlog"
short_desc="General purpose formula parser and interpreter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://gitlab.com/ixion/ixion/"
distfiles="http://kohei.us/files/ixion/src/${pkgname}-${version}.tar.xz"
checksum=426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
replaces="libixion11>=0"
libixion-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}