7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```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 ```
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'gthumb'
|
|
pkgname=gthumb
|
|
version=3.10.2
|
|
revision=2
|
|
build_style=meson
|
|
hostmakedepends="gettext pkg-config itstool glib-devel"
|
|
makedepends="webkit2gtk-devel json-glib-devel libsecret-devel librsvg-devel
|
|
libwebp-devel exiv2-devel gtk+3-devel libraw-devel libchamplain-devel
|
|
colord-devel gsettings-desktop-schemas-devel $(vopt_if brasero brasero-devel)
|
|
$(vopt_if clutter 'clutter-devel clutter-gtk-devel') $(vopt_if gstreamer gstreamer1-devel)
|
|
$(vopt_if soup libsoup-devel)"
|
|
short_desc='Image viewer and browser for the GNOME Desktop'
|
|
maintainer="Enguerrand de Rochefort <voidlinux@rochefort.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://live.gnome.org/gthumb"
|
|
distfiles="${GNOME_SITE}/gthumb/${version%.*}/gthumb-${version}.tar.xz"
|
|
checksum=fdeae42818378f9b3cab00604eeeb5b7c0a7a5ecfe69de08b993867746435c93
|
|
|
|
LDFLAGS="-fPIC"
|
|
|
|
build_options="brasero clutter gstreamer soup"
|
|
desc_option_brasero="Enable burning discs"
|
|
desc_option_clutter="Enable clutter (for slideshows)"
|
|
desc_option_soup="Enable webservices"
|
|
build_options_default="clutter gstreamer soup"
|
|
|
|
post_install() {
|
|
vdoc $FILESDIR/README.voidlinux
|
|
}
|
|
|
|
gthumb-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/include
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|