void-packages/srcpkgs/strawberry/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

33 lines
1.2 KiB
Bash

# Template file for 'strawberry'
pkgname=strawberry
version=0.9.3
revision=2
build_style=cmake
hostmakedepends="pkg-config protobuf gettext"
makedepends="alsa-lib-devel boost-devel gnutls-devel fftw-devel
chromaprint-devel gst-plugins-base1-devel libcdio-devel libgpod-devel
libmtp-devel protobuf-devel pulseaudio-devel taglib-devel"
depends="desktop-file-utils"
short_desc="Audio player and music collection organizer"
maintainer="q66 <daniel@octaforge.org>"
license="GPL-3.0-or-later"
homepage="https://www.strawberrymusicplayer.org/"
distfiles="https://files.strawberrymusicplayer.org/${pkgname}-${version}.tar.xz"
checksum=0fe9c38c4d1e2f10c1130dbd87ea6e740bef729fe78820a84ffabe524a80c83e
build_options="qt6"
build_options_default=""
if [ "$build_option_qt6" ]; then
configure_args="-DBUILD_WITH_QT6=ON -DQT_HOST_PATH=/usr"
hostmakedepends+=" qt6-base-devel qt6-tools-devel"
makedepends+=" qt6-base-devel qt6-plugin-mysql
qt6-plugin-odbc qt6-plugin-pgsql qt6-plugin-sqlite"
depends+=" qt6-plugin-sqlite"
else
hostmakedepends+=" qt5-host-tools qt5-devel"
makedepends+=" qt5-tools-devel qt5-plugin-mysql
qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite
qt5-plugin-tds qt5-x11extras-devel"
depends+=" qt5-plugin-sqlite"
fi