void-packages/srcpkgs/aqemu/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

18 lines
603 B
Bash

# Template file for 'aqemu'
pkgname=aqemu
version=0.9.4
revision=1
build_style=cmake
configure_args="-DWITHOUT_EMBEDDED_DISPLAY=1"
makedepends="qt5-devel qemu desktop-file-utils"
depends="qemu desktop-file-utils"
short_desc="GUI to QEMU and KVM emulators, written in Qt4"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://aqemu.sourceforge.net"
distfiles="https://github.com/TBK/aqemu/archive/v${version}.tar.gz"
checksum=576ae78de936518a1de057355ffc192b59e42be934f0111122b2c5fcafe318a7
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi