void-packages/srcpkgs/QLC+/template
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: 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

25 lines
820 B
Bash

# Template file for 'QLC+'
pkgname=QLC+
version=4.12.3
revision=1
wrksrc=qlcplus-QLC-_$version
build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
makedepends="eudev-libudev-devel qt5-devel qt5-multimedia-devel
qt5-script-devel alsa-lib-devel libftdi1-devel libusb-compat-devel
libsndfile-devel libmad-devel"
short_desc="Q Lighting Controller"
maintainer="Michael Aldridge <maldridge@VoidLinux.org>"
license="Apache-2.0"
homepage="https://www.qlcplus.org/"
distfiles="https://github.com/mcallegari/qlcplus/archive/QLC+_$version.tar.gz"
checksum=cefb5e84dee04b3567733fcaf4f8125069eec859b506e790ba8a9d921f1e75cc
pre_build() {
vsed -i 's/QMAKE_CXXFLAGS/#QMAKE_CXXFLAGS/' variables.pri
}
post_install() {
vmkdir usr/lib/udev/rules.d
mv $DESTDIR/etc/udev/rules.d/* $DESTDIR/usr/lib/udev/rules.d/
}