65749575ab
```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 ```
22 lines
962 B
Bash
22 lines
962 B
Bash
# Template file for 'navit'
|
|
pkgname=navit
|
|
version=0.5.4
|
|
revision=3
|
|
build_style=cmake
|
|
configure_args="-DLIBDIR=lib/navit -DSAMPLE_MAP=n -Wno-dev"
|
|
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
|
|
makedepends="SDL-devel qt5-devel gpsd-devel imlib2-devel dbus-glib-devel
|
|
fontconfig-devel zlib-devel libpng-devel qt5-declarative-devel qt5-svg-devel
|
|
qt5-location-devel SDL_ttf-devel SDL_image-devel libfreeglut-devel gtk+-devel
|
|
pango-devel atk-devel gdk-pixbuf-devel qt5-sensors-devel qt5-multimedia-devel
|
|
python3-devel"
|
|
short_desc="Turn-by-turn Navigation Software"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="GPL-2.0-only, LGPL-2.0-only"
|
|
homepage="http://www.navit-project.org/"
|
|
distfiles="https://github.com/navit-gps/navit/archive/v${version}.tar.gz"
|
|
checksum=728d9dcad00e97769f6cd85bfad5518b0edf62ef75d60543fa4c48c1c3ab1243
|
|
|
|
pre_configure() {
|
|
sed -i -e 's/\(GET_FILENAME_COMPONENT (LIB_DIR ${LIBDIR}\) NAME/\1 DIRECTORY/' CMakeLists.txt
|
|
}
|