```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 ```
19 lines
971 B
Bash
19 lines
971 B
Bash
# Template file for 'cantata'
|
|
pkgname=cantata
|
|
version=2.4.2
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools qt5-tools"
|
|
makedepends="qt5-devel qt5-tools-devel qt5-svg-devel qt5-xmlpatterns-devel
|
|
qt5-plugin-mysql qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-odbc
|
|
qt5-plugin-tds vlc-devel zlib-devel ffmpeg-devel taglib-devel
|
|
taglib-extras-devel libmtp-devel mpg123-devel libcdparanoia-devel libcddb-devel
|
|
speex-devel eudev-libudev-devel udisks2-devel libmusicbrainz5-devel
|
|
qt5-multimedia-devel libcdio-paranoia-devel"
|
|
depends="media-player-info qt5-plugin-sqlite"
|
|
short_desc="Qt client for the music player daemon (MPD)"
|
|
maintainer="LockeAnarchist <emanuel@openmailbox.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/cdrummond/cantata"
|
|
distfiles="https://github.com/CDrummond/cantata/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
|
|
checksum=3ed25d0c838720af7ed08b89a30f3e05d6952d40a5f520f29b3558b2eacdec82
|