void-packages/srcpkgs/milkytracker/template
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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

20 lines
771 B
Bash

# Template file for 'milkytracker'
pkgname=milkytracker
version=1.02.00
revision=2
wrksrc=MilkyTracker-${version}
build_style=cmake
configure_args="--with-alsa --with-jack"
makedepends="SDL2-devel zlib-devel jack-devel alsa-lib-devel rtmidi-devel"
depends="libjack rtmidi"
short_desc="Fast Tracker II inspired music tracker"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-only"
homepage="http://milkytracker.titandemo.org/"
distfiles="https://github.com/milkytracker/MilkyTracker/archive/v${version}.tar.gz"
checksum=6bcb6e74ee333e831137435a25c0f2f3da6e1462864deec9e693ef7d23a16023
post_install() {
vinstall resources/milkytracker.desktop 644 usr/share/applications
vinstall resources/pictures/carton.png 644 usr/share/pixmaps/ milkytracker.png
}