```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
656 B
Bash
14 lines
656 B
Bash
# Template file for 'sidplayfp'
|
|
# the version is usually in sync with libsidplayfp, keep in sync!
|
|
pkgname=sidplayfp
|
|
version=2.1.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libsidplayfp-devel alsa-lib-devel pulseaudio-devel jack-devel"
|
|
short_desc="Library to play Commodore 64 SID music - commandline interface"
|
|
maintainer="Zeinok <zeinok@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://sourceforge.net/projects/sidplay-residfp/"
|
|
distfiles="${SOURCEFORGE_SITE}/sidplay-residfp/${pkgname}/${version%.*}/${pkgname}-${version}.tar.gz"
|
|
checksum=1c9dd519c39f7c811c33a7b8f516f33c36b36d29af6075316a7ec7320f9d9155
|