200bed5c06
```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 ```
14 lines
539 B
Bash
14 lines
539 B
Bash
# Template file for 'hxtools'
|
|
pkgname=hxtools
|
|
version=20200428
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libHX-devel"
|
|
short_desc="Collection of small tools over the years by j.eng (inai.de)"
|
|
maintainer="nexolight <snow.dream.ch@gmail.com>"
|
|
license="WTFPL, LGPL-2.1/LGPL-3.0, GPL-2.0-or-later"
|
|
homepage="http://inai.de/projects/hxtools"
|
|
distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
|
|
checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
|
|
conflicts="bsd-games>=0"
|