4b97cd2fb4
```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
598 B
Bash
19 lines
598 B
Bash
# Template file for 'scrotty'
|
|
pkgname=scrotty
|
|
version=2.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
hostmakedepends="auto-auto-complete gettext pkg-config texinfo"
|
|
makedepends="libpng-devel"
|
|
depends="ImageMagick"
|
|
short_desc="Framebuffer screenshoter"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/maandree/scrotty"
|
|
distfiles="https://github.com/maandree/scrotty/archive/${version}.tar.gz"
|
|
checksum=466528d6ecf0138f57c40541258389686e22771c28d40f28c00825faaeaab1a3
|
|
|
|
pre_configure() {
|
|
export EXTRA_CFLAGS="$CFLAGS"
|
|
export EXTRA_LDFLAGS="$LDFLAGS"
|
|
}
|