void-packages/srcpkgs/mrxvt/template
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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

16 lines
582 B
Bash

# Template file for 'mrxvt'
pkgname=mrxvt
version=0.5.4
revision=2
build_style=gnu-configure
configure_args="--disable-debug --disable-lastlog --enable-xft --enable-text-shadow --with-save-lines=200 --with-x"
hostmakedepends="pkg-config"
makedepends="libXft-devel"
short_desc="Multi-tabbed rxvt based terminal"
maintainer="Dan Kociela <dkociela@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://materm.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/materm/mrxvt-${version}.tar.gz"
checksum=f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7
CFLAGS="-fcommon"