void-packages/srcpkgs/choqok/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

18 lines
732 B
Bash

# Template file for 'choqok'
pkgname=choqok
version=1.7.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules gettext pkg-config"
makedepends="kcmutils-devel kdewebkit-devel kemoticons-devel knotifyconfig-devel
kparts-devel qca-qt5-devel qt5-networkauth-devel qt5-devel purpose-devel telepathy-qt5-devel"
short_desc="Twitter, Pump.io, GNU social client for KDE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://choqok.kde.org/"
distfiles="${KDE_SITE}/${pkgname}/${version%.*}/src/${pkgname}-${version}.tar.xz"
checksum=26600d95f152c3e04881efb7fb3eb07b5c52fa6ffee838690f28b45defb4a47e
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" kcoreaddons kdoctools ${makedepends}"
fi