```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
504 B
Bash
14 lines
504 B
Bash
# Template file for 'SoapyUHD'
|
|
pkgname=SoapyUHD
|
|
version=0.3.6
|
|
revision=3
|
|
wrksrc="${pkgname}-soapy-uhd-${version}"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SoapySDR-devel uhd-devel"
|
|
short_desc="SoapySDR module for Ettus UHD"
|
|
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/pothosware/SoapyUHD"
|
|
distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"
|
|
checksum=0ac7fd0967e6922f16d1ba1a7ecb72f1fbcc14dd80e5134af9a5c9b86c1bccb8
|