void-packages/srcpkgs/64tass/template
Đoàn Trần Công Danh 75403cef76 srcpkgs/[0-9]*: 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

15 lines
514 B
Bash

# Template file for '64tass'
pkgname=64tass
version=1.55.2200
revision=2
wrksrc="64tass-${version}-src"
build_style=gnu-makefile
make_build_args="prefix=/usr"
make_install_args="prefix=/usr"
hostmakedepends="unzip"
short_desc="6502/6510 assembler"
maintainer="Jakub Skrzypnik <jakub.skrzypnik@interia.pl>"
license="GPL-2.0-or-later"
homepage="http://tass64.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/tass64/64tass-${version}-src.zip"
checksum=067d0a54cb3c473b26aa5d69ea3f1f956be7cccc9044f1117fc20cb84aa63880