Date: Thursday, October 13, 2016 @ 04:18:22
  Author: felixonmars
Revision: 192109

upgpkg: deepin-image-viewer 1.1.0-1

Modified:
  deepin-image-viewer/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-10-13 04:08:04 UTC (rev 192108)
+++ PKGBUILD    2016-10-13 04:18:22 UTC (rev 192109)
@@ -2,13 +2,13 @@
 # Maintainer: Felix Yan <felixonm...@archlinux.org>
 
 pkgname=deepin-image-viewer
-pkgver=1.0.4
-pkgrel=2
+pkgver=1.1.0
+pkgrel=1
 pkgdesc='Deepin Image Viewer'
 arch=('i686' 'x86_64')
 url="https://github.com/linuxdeepin/deepin-image-viewer";
 license=('GPL3')
-depends=('deepin-tool-kit' 'libexif' 'qt5-svg' 'deepin-shortcut-viewer')
+depends=('deepin-tool-kit' 'libexif' 'freeimage' 'libraw' 'qt5-svg' 
'deepin-shortcut-viewer')
 makedepends=('git' 'qt5-tools')
 groups=('deepin')
 source=("git+https://cr.deepin.io/deepin-image-viewer.git#tag=$pkgver";)
@@ -15,16 +15,13 @@
 sha256sums=('SKIP')
 
 prepare() {
-  sed -i '/vendor\/prebuild/d' deepin-image-viewer/deepin-image-viewer.pro
+  sed -i '/vendor\/prebuild/d' 
deepin-image-viewer/{deepin-image-viewer.pro,viewer/viewer.pro}
 
-  cat > deepin-image-viewer/vendor/vendor.pri << EOF
-QMAKE_CXXFLAGS += \$\$system(pkg-config --cflags dtkwidget)
-LIBS +=  \$\$system(pkg-config --libs dtkwidget)
-QMAKE_CXXFLAGS += \$\$system(pkg-config --cflags dtkutil)
-LIBS +=  \$\$system(pkg-config --libs dtkutil)
-QMAKE_CXXFLAGS += \$\$system(pkg-config --cflags dtkbase)
-LIBS += \$\$system(pkg-config --libs dtkbase)
-EOF
+  rm -r 
deepin-image-viewer{,/viewer}/vendor/{src,lib,include,dutil-vendor.pri,prebuild}
+
+  sed -i 's|#include <exif-data.h>|#include <libexif/exif-data.h>|' 
deepin-image-viewer/viewer/utils/imageutils_libexif.h
+
+  sed -i 's|env PKG_CONFIG_PATH=\$\$PWD/lib/pkgconfig ||' 
deepin-image-viewer{,/viewer}/vendor/vendor.pri
 }
 
 build() {
@@ -36,4 +33,8 @@
 package() {
   cd deepin-image-viewer
   make INSTALL_ROOT="$pkgdir" install
+
+  # Fix broken /share folder
+  mv "$pkgdir"/share/kde4 "$pkgdir"/usr/share/kde4
+  rmdir "$pkgdir"/share
 }

Reply via email to