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

Maxime Gauduin alucryd at archlinux.org
Wed Jun 20 15:50:05 UTC 2018


    Date: Wednesday, June 20, 2018 @ 15:50:05
  Author: alucryd
Revision: 344208

upgpkg: pantheon-files 0.3.5.r5882.9785e68a-1

Modified:
  pantheon-files/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-20 15:25:19 UTC (rev 344207)
+++ PKGBUILD	2018-06-20 15:50:05 UTC (rev 344208)
@@ -2,8 +2,8 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
 pkgname=pantheon-files
-pkgver=0.3.5
-pkgrel=2
+pkgver=0.3.5.r5882.9785e68a
+pkgrel=1
 pkgdesc='The Pantheon File Manager'
 arch=('x86_64')
 url='https://launchpad.net/pantheon-files'
@@ -12,15 +12,20 @@
 depends=('atk' 'cairo' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3' 'libcanberra'
          'libgee' 'libnotify' 'pango' 'sqlite' 'zeitgeist'
          'libgranite.so')
-makedepends=('cmake' 'gnome-common' 'vala')
+makedepends=('cmake' 'git' 'gnome-common' 'vala')
 optdepends=('contractor: Various context menu entries'
             'tumbler: Thumbnails generation')
-source=("https://launchpad.net/pantheon-files/0.3.x/${pkgver}/+download/pantheon-files-${pkgver}.tar.xz")
-sha256sums=('fd58b00ea3ad835d62f248a982e508b5199b846d67c5d92bf958e85e670f8a7e')
+_commit='9785e68aa828e5a2b400a277dd70cd7eea985512'
+source=("pantheon-files::git+https://github.com/elementary/files.git#commit=${_commit}")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd pantheon-files
+
+  echo "0.3.5.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
 prepare() {
-  cd pantheon-files-${pkgver}
-
   if [[ -d build ]]; then
     rm -rf build
   fi
@@ -28,9 +33,9 @@
 }
 
 build() {
-  cd pantheon-files-${pkgver}/build
+  cd build
 
-  cmake .. \
+  cmake ../pantheon-files \
     -DCMAKE_BUILD_TYPE='Release' \
     -DCMAKE_INSTALL_PREFIX='/usr' \
     -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
@@ -40,9 +45,7 @@
 }
 
 package() {
-  cd pantheon-files-${pkgver}/build
-
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" -C build install
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list