# $Id$ # Maintainer (Arch): Jan Alexander Steffens (heftig) # Contributor (Arch): Jan de Groot # Contributor (Arch): Tobias Kieslich # Contributor: Andreas Grapentin # Contributor: André Silva # Contributor: Márcio Silva # parabola changes and rationale: # - removed support for possibly unsafe protocols pkgname=gthumb pkgver=3.6.2 pkgrel=1.nonprism1 pkgdesc="Image browser and viewer for the GNOME Desktop, without support for unsafe and dangerous for privacy protocols" url="https://wiki.gnome.org/Apps/gthumb" arch=(x86_64 i686 armv7h) license=(GPL) depends=(dconf librsvg clutter-gtk gst-plugins-base-libs gsettings-desktop-schemas libwebp libsecret libsoup webkit2gtk json-glib gtk3-print-backends) makedepends=(intltool libchamplain exiv2 itstool brasero libraw liboauth docbook-xsl yelp-tools flex gnome-common git) options=(debug !strip) optdepends=('libraw: read RAW files' 'exiv2: metadata support' 'libchamplain: map viewer' 'brasero: burn discs' 'liboauth: web albums') _commit=28f951e14aae66b96d7a03aa887ca3844824cecb # tags/3.6.2^0 source=("git+https://gitlab.gnome.org/GNOME/gthumb.git#commit=$_commit" nonprism.patch) sha256sums=('SKIP' 'cdc1c15a5c62f3b6ae26f26badbcdb0a2e6dacac2b46037643a919065e8221a4') pkgver() { cd $pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgname patch -Np1 -i ../nonprism.patch NOCONFIGURE=1 ./autogen.sh } build() { cd $pkgname ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --disable-static \ --enable-libchamplain sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { cd $pkgname make check } package() { cd $pkgname make DESTDIR="$pkgdir" install }