# Maintainer: Nate Simon pkgname=pix pkgver=2.6.2 pkgrel=1 pkgdesc="Image viewer and browser based on gthumb. X-Apps Project." arch=('i686' 'x86_64' 'armv7h') license=('GPL') depends=('desktop-file-utils' 'librsvg' 'clutter-gtk' 'gst-plugins-base-libs' 'gsettings-desktop-schemas' 'libwebp' 'webkit2gtk') makedepends=('gnome-common' 'intltool' 'itstool' 'liboauth' 'libchamplain' 'libopenraw' 'exiv2') optdepends=('gstreamer: Video support' 'exiv2: Embedded metadata support' 'libjpeg-turbo: Jpeg writing support' 'libtiff: Tiff writing support' 'dcraw: Support for RAW photos' 'brasero: Burn discs' 'liboauth: Web albums' 'libchamplain: Map Viewer') provides=($pkgname) conflicts=('pix-git') url='https://github.com/linuxmint/pix' source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/${pkgname}/archive/${pkgver}.tar.gz") md5sums=('5743241c7cd7191654b47271e54703f1') build() { cd ${srcdir}/${pkgname}-${pkgver} gnome-autogen.sh --prefix="/usr" \ --localstatedir="/var" \ --libexecdir="/usr/lib/${pkgname}" \ -disable-static # Copy some files that ended up in the wrong directory. # This doesn't happen on mint. See this github issue: # https://github.com/linuxmint/pix/issues/7 if [ -d 'tests/$(top_srcdir)/' ] then cp 'tests/$(top_srcdir)/pix/.deps/dom_test-dom.Po' "pix/.deps/" cp 'tests/$(top_srcdir)/pix/.deps/glib_utils_test-glib-utils.Po' "pix/.deps/" cp 'tests/$(top_srcdir)/pix/.deps/gsignature_test-gsignature.Po' "pix/.deps/" cp 'tests/$(top_srcdir)/pix/.deps/oauth_test-gsignature.Po' "pix/.deps/" fi make } package(){ cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR="$pkgdir/" install }