void-packages/srcpkgs/xfig/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

23 lines
686 B
Bash

# Template file for 'xfig'
pkgname=xfig
version=3.2.8a
revision=1
build_style="gnu-configure"
hostmakedepends="fig2dev ghostscript netpbm"
makedepends="libXaw-devel libXaw3d-devel libXi-devel libXmu-devel libXpm-devel
libXt-devel libjpeg-turbo-devel libpng-devel"
depends="gsfonts fig2dev"
short_desc="An interactive drawing tool"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT-like"
homepage="http://mcj.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
checksum=ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
post_extract() {
sed -i 's/spell/aspell/' app-defaults/Fig.in
}
post_install() {
vlicense HACKING LICENSE
}