void-packages/srcpkgs/fbterm/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```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

20 lines
672 B
Bash

# Template file for 'fbterm'
pkgname=fbterm
version=1.7.0
revision=6
wrksrc="${pkgname}-${version%.*}"
build_style=gnu-configure
configure_args="--enable-gpm"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel gpm-devel"
short_desc="Fast frame buffer based terminal emulator"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/izmntuk/fbterm"
distfiles="https://github.com/izmntuk/${pkgname}/archive/v${version%.*}.tar.gz"
checksum=68e9742b23d6f143d809a5930f5f22c7e55d7c14a4ab2c8a842e0b5c27b1f863
post_configure() {
sed -i "s,tic,& -o $DESTDIR/usr/share/terminfo," terminfo/Makefile
vmkdir usr/share/terminfo
}