986c0a7d5e
```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
501 B
Bash
14 lines
501 B
Bash
# Template file for 'iwgtk'
|
|
pkgname=iwgtk
|
|
version=0.4
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="glib-devel pkg-config"
|
|
makedepends="gtk+3-devel"
|
|
depends="iwd"
|
|
short_desc="GUI WiFi management utility to control iwd"
|
|
maintainer="caughtquick <me@caughtquick.tech>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/J-Lentz/iwgtk/"
|
|
distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
|