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 ```
24 lines
723 B
Bash
24 lines
723 B
Bash
# Template file for 'simutron'
|
|
pkgname=simutron
|
|
_version=1.0.1
|
|
_rev=SR2
|
|
version=1.0.1.${_rev}
|
|
revision=1
|
|
build_wrksrc=build
|
|
build_style=qmake
|
|
hostmakedepends="subversion qt5-qmake qt5-host-tools pkg-config"
|
|
makedepends="simavr-devel qt5-devel"
|
|
short_desc="AVR simulator IDE"
|
|
maintainer="Artur Sinila <opensource@logarithmus.dev>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://sourceforge.net/projects/simutron/"
|
|
nostrip_files="LCD20x4Test.elf"
|
|
|
|
do_fetch() {
|
|
svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
|
|
}
|
|
|
|
post_extract() {
|
|
rm share/simutron/examples/MENWIZ/LCD20x4Test/bin/Debug/LCD20x4Test.elf
|
|
rm share/simutron/examples/MENWIZ/LCD20x4Test/bin/Release/LCD20x4Test.elf
|
|
}
|