void-packages/srcpkgs/imagewriter/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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
704 B
Bash

# Template file for 'imagewriter'
pkgname=imagewriter
version=1.10.20150521
revision=2
_commit=1d253d960a28f9de4468b0b091c231083f03c1c8
wrksrc="${pkgname}-${_commit}"
build_style=qmake
configure_args="DEFINES=USEUDISKS2"
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-devel"
depends="desktop-file-utils hicolor-icon-theme udisks2"
short_desc="Graphical utility for writing raw disk images & hybrid isos to USB keys"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/openSUSE/imagewriter"
distfiles="https://github.com/openSUSE/imagewriter/archive/${_commit}.tar.gz"
checksum=7761ee45b16b5841c6b62b091c7f9d0b8c64b14b79d77e9909ca813e1dc9885d