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

35 lines
1 KiB
Bash

# Template file for 'libcmis'
pkgname=libcmis
version=0.5.2
revision=4
build_style=gnu-configure
configure_args="DOCBOOK2MAN=docbook2man --disable-werror"
hostmakedepends="pkg-config docbook2x"
makedepends="libcurl-devel libxml2-devel libcppunit-devel boost-devel"
short_desc="C/C++ client library for the CMIS protocol"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
homepage="https://github.com/tdf/libcmis"
distfiles="https://github.com/tdf/libcmis/releases/download/v${version}/libcmis-${version}.tar.gz"
checksum=ed6f681a48abbf3c2324564b17a180d21fa9503230e8708825e1ad80daee4f81
CXXFLAGS="-Wno-deprecated"
libcmis-devel_package() {
depends="libcurl-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
libcmis-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
vmove usr/share/man
}
}