void-packages/srcpkgs/lmms/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

31 lines
1.1 KiB
Bash

# Template file for 'lmms'
pkgname=lmms
version=1.2.2
revision=2
archs="~armv6*"
wrksrc=${pkgname}
build_style=cmake
configure_args="-DWANT_QT5=ON -DWANT_WEAKJACK=OFF -DWANT_CARLA=OFF"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake extra-cmake-modules
fltk"
makedepends="SDL_sound-devel fltk-devel fluidsynth-devel jack-devel ladspa-sdk
lame-devel libsamplerate-devel libstk-devel portaudio-devel qt5-tools-devel
qt5-x11extras-devel redland-devel xcb-util-devel xcb-util-keysyms-devel
$(vopt_if sndio sndio-devel)"
depends="desktop-file-utils hicolor-icon-theme stk-data"
short_desc="Cross-platform music production software"
maintainer="Logen K. <logen@sudotask.com>"
license="GPL-2.0-or-later"
homepage="https://lmms.io/"
distfiles="https://github.com/LMMS/lmms/releases/download/v${version}/lmms_${version}.tar.xz"
checksum=b185507fb64ecfd8e31145135b58ab244b637f9efc09c4176caf70aa3cbaae1e
build_options="sndio"
build_options_default="sndio"
# No error for several warnings
CXXFLAGS="-Wno-deprecated-declarations -Wno-class-memaccess -Wno-format-truncation"
post_install() {
rm -f ${DESTDIR}/usr/lib/*.a
}