a03d116397
```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 ```
16 lines
533 B
Bash
16 lines
533 B
Bash
# Template file for 'enyo-doom'
|
|
pkgname=enyo-doom
|
|
version=2.0.1
|
|
revision=1
|
|
build_style=cmake
|
|
makedepends="qt5-devel"
|
|
short_desc="Frontend for Doom engines"
|
|
maintainer="Michael Straube <straubem@gmx.de>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gitlab.com/sdcofer70/enyo-doom"
|
|
distfiles="https://gitlab.com/sdcofer70/enyo-doom/-/archive/${version}/enyo-doom-${version}.tar.bz2"
|
|
checksum=03d490081753dfd1d40b7cc8142b8f0e7642bad6f3d724f9ba9cfad0253f1a34
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-devel"
|
|
fi
|