void-packages/srcpkgs/gfm/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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
674 B
Bash

# Template file for 'gfm'
pkgname=gfm
version=1.08
revision=1
_tilpver=1.18
build_style=gnu-configure
hostmakedepends="automake bison groff intltool libtool pkg-config"
makedepends="libticalcs2-devel libglade-devel"
short_desc="TIgroup files manipulator for TiLP2"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.ticalc.org"
distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" gettext-devel"
fi
pre_configure() {
mkdir -p m4
autoreconf -i -v -f
}