```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 ```
29 lines
1.3 KiB
Bash
29 lines
1.3 KiB
Bash
# Template file for 'tellico'
|
|
pkgname=tellico
|
|
version=3.3.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_WEBCAM=$(vopt_if webcam ON OFF)"
|
|
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools kdoctools kconfig
|
|
gettext kcoreaddons"
|
|
makedepends="kfilemetadata5-devel khtml-devel kitemmodels-devel knewstuff-devel
|
|
kguiaddons-devel karchive-devel kiconthemes-devel
|
|
$(vopt_if webcam v4l-utils-devel) $(vopt_if yaz yaz-devel)
|
|
$(vopt_if xmp exempi-devel) $(vopt_if cdio libcdio-devel)
|
|
$(vopt_if cddb libkcddb-devel) $(vopt_if scanner libksane-devel)
|
|
libcdio-paranoia-devel ksolid-devel"
|
|
short_desc="Collection manager for KDE"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://tellico-project.org/"
|
|
distfiles="http://tellico-project.org/files/${pkgname}-${version}.tar.xz"
|
|
checksum=716310760aa41b5673ffe8f239bf0a7835ca8030773499bf690de21c470e0187
|
|
python_version=3
|
|
build_options="webcam yaz xmp cdio cddb scanner"
|
|
build_options_default="webcam yaz xmp cdio cddb scanner"
|
|
desc_option_cdio="Support for reading cdtext from audio CDs"
|
|
desc_option_webcam="Support for barcode scanning with a webcam"
|
|
desc_option_xmp="Support for reading PDF/XMP metadata"
|
|
desc_option_yaz="Support for searching z39.50 databases"
|
|
desc_option_cddb="Support for CDDB searches"
|
|
desc_option_scanner="Support for adding scanned images to a collection"
|