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

24 lines
739 B
Bash

# Template file for 'cutemarked'
pkgname=cutemarked
reverts="v0.11.0_1"
version=0.11.3
revision=8
wrksrc="CuteMarkEd-${version}"
build_style=qmake
hostmakedepends="pkg-config qt5-qmake"
makedepends="qt5-devel qt5-tools-devel qt5-webkit-devel discount-devel hunspell-devel"
depends="desktop-file-utils"
short_desc="Markdown editor with live HTML preview"
maintainer="Logen K <logen@sudotask.com>"
license="GPL-2.0-or-later"
homepage="http://cloose.github.io/CuteMarkEd/"
distfiles="https://github.com/cloose/${pkgname}/archive/v${version}.tar.gz"
checksum=78a41808c2f0452375810abdff76eeaaee012f8d1368a2b8772ec6b4d2ceeec8
pre_build() {
lrelease app/app.pro
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel qt5-webkit-devel"
fi