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 ```
25 lines
1 KiB
Bash
25 lines
1 KiB
Bash
# Template file for 'shotwell'
|
|
pkgname=shotwell
|
|
version=0.31.3
|
|
revision=2
|
|
build_style=meson
|
|
hostmakedepends="gcr-devel gettext glib-devel itstool
|
|
libgee08-devel libgexiv2-devel pkg-config vala-devel"
|
|
makedepends="gst-plugins-base1-devel libgdata-devel
|
|
libgee08-devel libgexiv2-devel libgphoto2-devel libgudev-devel
|
|
libraw-devel libsecret-devel libchamplain-devel libwebp-devel
|
|
libunique-devel rest-devel vala-devel webkit2gtk-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Open source photo manager for GNOME"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later, CC-BY-SA-3.0"
|
|
homepage="https://wiki.gnome.org/Apps/Shotwell"
|
|
distfiles="${GNOME_SITE}/shotwell/${version%.*}/shotwell-${version}.tar.xz"
|
|
checksum=8de36f20488f4fb7d090194c8af46cd3661bcc81a3d65f980cb17667ed826af2
|
|
lib32disabled=yes
|
|
|
|
post_extract() {
|
|
# because shotwell intelligently forces fatal warnings even for
|
|
# harmless stuff coming from the outside that we can do nothing about
|
|
vsed -i "/'--fatal-warnings'/d" meson.build
|
|
}
|