void-packages/srcpkgs/wineasio/template
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine 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

30 lines
966 B
Bash

# Template file for 'wineasio'
pkgname=wineasio
version=0.9.2
revision=7
archs="i686"
repository="nonfree"
build_style=gnu-makefile
create_wrksrc=yes
build_wrksrc=${pkgname}
homepage="https://sourceforge.net/projects/wineasio"
hostmakedepends="unzip wine-tools"
makedepends="wine wine-devel jack-devel"
depends="jack"
short_desc="JACK driver for WINE to provide Windows Apps with ASIO support"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1, Steinberg"
distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
pre_configure() {
cp -v ../ASIOSDK2.3/common/asio.h asio.h
}
do_install() {
vinstall wineasio.dll.so 755 usr/lib/wine
vinstall README 644 usr/share/wineasio
vlicense "../ASIOSDK2.3/Steinberg ASIO Licensing Agreement.pdf"
}