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 ```
16 lines
649 B
Bash
16 lines
649 B
Bash
# Template file for 'stellarium'
|
|
pkgname=stellarium
|
|
version=0.21.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="perl qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-location-devel qt5-multimedia-devel qt5-script-devel
|
|
qt5-serialport-devel qt5-tools-devel"
|
|
depends="desktop-file-utils"
|
|
short_desc="Open Source Planetarium"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://stellarium.org/"
|
|
distfiles="https://github.com/Stellarium/stellarium/releases/download/v${version}/stellarium-${version}.tar.gz"
|
|
checksum=977fcd6776a47d34b1646727853d15968a1410c34c8ba1b3e5cfbf24b5126f13
|
|
replaces="stellarium-data>=0"
|