765e304c4b
```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 ```
17 lines
682 B
Bash
17 lines
682 B
Bash
# Template file for 'merkaartor'
|
|
pkgname=merkaartor
|
|
version=0.18.4
|
|
revision=2
|
|
build_style=qmake
|
|
configure_args="SYSTEM_QUAZIP=1 SYSTEM_QUAZIP_LDFLAGS=-lquazip5"
|
|
hostmakedepends="qt5-qmake libgdal-tools qt5-host-tools"
|
|
makedepends="libgdal-devel proj-devel qt5-declarative-devel qt5-svg-devel
|
|
qt5-tools-devel qt5-webkit-devel quazip-devel"
|
|
short_desc="Openstreetmap map editor"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://merkaartor.be"
|
|
distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
|
|
checksum=16e790507a5bb54e4b3c09ea063ebb095a4b014ce8ba937b771706d4c940976a
|
|
|
|
CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
|