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 ```
18 lines
570 B
Bash
18 lines
570 B
Bash
# Template file for 'starplot'
|
|
pkgname=starplot
|
|
version=0.95.5
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--disable-rpath"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtk+-devel"
|
|
short_desc="View 3d perspective maps of stars"
|
|
maintainer="beefcurtains <beefcurtains@users.noreply.github.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://starplot.org/"
|
|
distfiles="${homepage}downloads/${pkgname}-${version}.tar.gz"
|
|
checksum=e320f141b736b3a6468e7d0c08a93961db6615e9eb4d533d554eea31c3fa845a
|
|
|
|
pre_build() {
|
|
sed -i 's/_STRINGS_H/V_STRINGS_H/' src/classes/strings.h
|
|
}
|