[arch-commits] Commit in pantheon-photos/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Fri Aug 12 12:43:23 UTC 2016


    Date: Friday, August 12, 2016 @ 12:43:22
  Author: alucryd
Revision: 186608

upgpkg: pantheon-photos 0.2-1

Modified:
  pantheon-photos/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-12 12:20:52 UTC (rev 186607)
+++ PKGBUILD	2016-08-12 12:43:22 UTC (rev 186608)
@@ -2,8 +2,8 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
 pkgname=pantheon-photos
-pkgver=0.1.1
-pkgrel=2
+pkgver=0.2
+pkgrel=1
 pkgdesc='The Pantheon Photos Manager'
 arch=('i686' 'x86_64')
 url='https://launchpad.net/pantheon-photos'
@@ -12,26 +12,34 @@
          'gst-plugins-base-libs' 'gstreamer' 'gtk3' 'hicolor-icon-theme'
          'libexif' 'libgee' 'libgexiv2' 'libgphoto2' 'libraw' 'pango' 'sqlite'
          'libgranite.so' 'libgudev-1.0.so')
-makedepends=('vala' 'webkitgtk')
-optdepends=('webkitgtk: Publishing plugins')
+makedepends=('cmake' 'intltool' 'vala' 'webkit2gtk')
+optdepends=('webkit2gtk: Publishing plugins')
 conflicts=('shotwell')
-source=("https://launchpad.net/pantheon-photos/${pkgver%.*.*}.x/${pkgver}/+download/pantheon-photos-${pkgver}.tar.xz")
-sha256sums=('f6952f9a8f30db966b961b5e08cf2b017076861503a8a49d12e939052ff71d10')
+source=("https://launchpad.net/pantheon-photos/0.2.x/${pkgver}/+download/pantheon-photos-${pkgver}.tar.xz")
+sha256sums=('4e2a14ffa955706ece4391c999d4bf9e353a16461ce3fefc3735d1975b595862')
 
-build() {
+prepare() {
   cd pantheon-photos-${pkgver}
 
-  ./configure \
-    --prefix='/usr' \
-    --libexec='/usr/lib/shotwell' \
-    --disable-desktop-update \
-    --disable-icon-update \
-    --disable-schemas-compile
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd pantheon-photos-${pkgver}/build
+
+  cmake .. \
+    -DCMAKE_BUILD_TYPE='Release' \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+    -DGSETTINGS_COMPILE='OFF'
   make
 }
 
 package() {
-  cd pantheon-photos-${pkgver}
+  cd pantheon-photos-${pkgver}/build
 
   make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list