2fd8d4df94
```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 ```
20 lines
709 B
Bash
20 lines
709 B
Bash
# Template file for 'orion'
|
|
pkgname=orion
|
|
version=1.6.7
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-declarative-devel qt5-quickcontrols2-devel mpv-devel"
|
|
depends="qt5-quickcontrols qt5-quickcontrols2 qt5-graphicaleffects qt5-svg"
|
|
short_desc="Qt-based client for Twitch.tv"
|
|
maintainer="Chinmay Pai <chinmaydpai@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/alamminsalo/orion"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=19d9c170d0bcf21d47947704d8c8e927cff5140f94cb840b51d2b8574b0149fb
|
|
|
|
do_install() {
|
|
vbin orion
|
|
vinstall distfiles/Orion.desktop 644 usr/share/applications/
|
|
vinstall distfiles/orion.svg 644 usr/share/icons/
|
|
}
|