void-packages/srcpkgs/sysexxer-ng/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

17 lines
606 B
Bash

# Template file for 'sysexxer-ng'
pkgname=sysexxer-ng
version=1.0
revision=2
build_style=cmake
hostmakedepends="pkg-config gettext"
makedepends="boost-devel fltk-devel jack-devel libev-devel ncurses-devel rtmidi-devel"
short_desc="Universal tool to exchange MIDI system-exclusive data"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="BSL-1.0"
homepage="https://github.com/linuxmao-org/sysexxer-ng"
distfiles="${homepage}/releases/download/v${version}/sysexxer-ng-${version}.tar.gz"
checksum=66e2eb66b7ab34b8287bba3230009a311b7db1870c47911049666c523fced5a9
post_install() {
vlicense LICENSE
}