void-packages/srcpkgs/wildmidi/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

53 lines
1.4 KiB
Bash

# Template file for 'wildmidi'
pkgname=wildmidi
version=0.4.4
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=cmake
configure_args="-DWANT_ALSA=1 -DWANT_OSS=1 -DWANT_OPENAL=1"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel libopenal-devel"
depends="libwildmidi"
short_desc="Simple software midi player and core softsynth library"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later, LGPL-3.0-only"
homepage="https://www.mindwerks.net/projects/wildmidi"
distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
post_install() {
vsconf ${FILESDIR}/wildmidi.cfg
}
libwildmidi_package() {
depends="freepats"
short_desc+=" - library"
conf_files="/etc/wildmidi/wildmidi.cfg"
pkg_install() {
vmove "usr/lib/*.so.*"
vinstall ${FILESDIR}/wildmidi.cfg 644 etc/wildmidi
}
}
libwildmidi-devel_package() {
depends="libwildmidi>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}
WildMidi_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="wildmidi"
}
WildMidi-devel_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="libwildmidi-devel"
}