Date: Thursday, February 22, 2018 @ 20:20:24
  Author: idevolder
Revision: 297120

upgpkg: qcad 3.19.2.3-1

Modified:
  qcad/trunk/PKGBUILD

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 50 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-22 19:53:51 UTC (rev 297119)
+++ PKGBUILD    2018-02-22 20:20:24 UTC (rev 297120)
@@ -1,5 +1,5 @@
 # $Id$
-# Maintainer:
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
 # Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
 # Contributor: Stefan Husmann <stefan-husm...@t-online.de>
 # Contributor: Giovanni Scafora <linuxma...@gmail.com>
@@ -6,21 +6,22 @@
 # Contributor: Daniel J Griffiths <ghost1...@archlinux.us>
 
 pkgname=qcad
-pkgver=3.19.2.0
+pkgver=3.19.2.3
 pkgrel=1
-pkgdesc="A 2D CAD package based upon Qt"
+pkgdesc='A 2D CAD package based upon Qt'
 arch=('x86_64')
 url="http://www.qcad.org";
 license=('GPL3')
-depends=(qt5-script qt5-svg gcc-libs qt5-xmlpatterns)
-makedepends=(qt5-tools glu)
-source=($pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz)
-sha256sums=('23f24b164ac6fca351f3b8087dbc6a2bf954c747bf46be40f50f16eb9fc41721')
+depends=('qt5-script' 'qt5-svg' 'gcc-libs' 'qt5-xmlpatterns' 'qt5-tools')
+makedepends=('glu')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz";)
+sha512sums=('d386b547f09e13935ebd5cf425c51531260f065fdec431091b305899aa18fcbc056ecdb58b2cc4119233e6f04a2bf2f35c7eb775fed49fd459f4d4d3e91efbde')
 
 prepare() {
   rm *.tar.gz
   cd qcad-$pkgver
-  sed -e 's|$${QT_VERSION}|5.5.0|g' -i src/3rdparty/3rdparty.pro # Don't 
require specific Qt version
+  sed -e 's|$${QT_VERSION}|5.5.0|g' \
+      -i src/3rdparty/3rdparty.pro # Don't require specific Qt version
 }
 
 build() {
@@ -37,25 +38,54 @@
   find . \( -name 'Makefile' -name '.gitignore' \) -delete
 
   install -dm755 "$pkgdir"/usr/lib/qcad
-  cp -r examples fonts libraries linetypes patterns plugins scripts ts 
"$pkgdir"/usr/lib/qcad
-  cp release/* "$pkgdir"/usr/lib/qcad
+  cp -r examples fonts libraries linetypes patterns scripts themes ts \
+      "$pkgdir"/usr/lib/qcad
+  cp release/{*.so,qcad-bin} "$pkgdir"/usr/lib/qcad
 
-  install -m755 readme.txt "$pkgdir"/usr/lib/qcad/readme.txt
+  # install man
+  install -Dm644 qcad.1 "$pkgdir"/usr/share/man/man1/qcad.1
 
+  # readme
+  install -Dm644 readme.txt "$pkgdir"/usr/lib/qcad/readme.txt
+
   # qt
-  for sofiles in /usr/lib/qt/plugins/imageformats/*.so
-  do
-    ln -sf ${sofiles} 
"$pkgdir"/usr/lib/qcad/plugins/imageformats/${sofiles##/*/}
-  done
-  for sofiles in /usr/lib/qt/plugins/sqldrivers/*.so
-  do
-    ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/sqldrivers/${sofiles##/*/}
-  done
+  cp -r plugins platforminputcontexts platforms xcbglintegrations \
+      "$pkgdir"/usr/lib/qcad
+  #install -dm755 
"$pkgdir"/usr/lib/qcad/plugins/{designer,imageformats,printsupport,sqldrivers}
+  #for sofiles in /usr/lib/qt/plugins/designer/*.so
+  #do
+    #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/designer/${sofiles##/*/}
+  #done
+  #for sofiles in /usr/lib/qt/plugins/imageformats/*.so
+  #do
+    #ln -sf ${sofiles} 
"$pkgdir"/usr/lib/qcad/plugins/imageformats/${sofiles##/*/}
+  #done
+  #for sofiles in /usr/lib/qt/plugins/printsupport/*.so
+  #do
+    #ln -sf ${sofiles} 
"$pkgdir"/usr/lib/qcad/plugins/printsupport/${sofiles##/*/}
+  #done
+  #for sofiles in /usr/lib/qt/plugins/sqldrivers/*.so
+  #do
+    #ln -sf ${sofiles} 
"$pkgdir"/usr/lib/qcad/plugins/sqldrivers/${sofiles##/*/}
+  #done
+  #install -dm755 
"$pkgdir"/usr/lib/qcad/{platforminputcontexts,platforms,xcbglintegrations}
+  #for sofiles in /usr/lib/qt/plugins/platforminputcontexts/*.so
+  #do
+    #ln -sf ${sofiles} 
"$pkgdir"/usr/lib/qcad/platforminputcontexts/${sofiles##/*/}
+  #done
+  #for sofiles in /usr/lib/qt/plugins/platforms/*.so
+  #do
+    #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/platforms/${sofiles##/*/}
+  #done
+  #for sofiles in /usr/lib/qt/plugins/xcbglintegrations/*.so
+  #do
+    #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/xcbglintegrations/${sofiles##/*/}
+  #done
 
   install -Dm644 scripts/qcad_icon.png 
"$pkgdir"/usr/share/pixmaps/qcad_icon.png
   install -Dm644 qcad.desktop "$pkgdir"/usr/share/applications/qcad.desktop
 
-  install -dm0755 "$pkgdir"/usr/bin
+  install -dm755 "$pkgdir"/usr/bin
   echo -e 
'#!/bin/sh\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/lib/qcad"
 exec /usr/lib/qcad/qcad-bin "$@"' >"$pkgdir"/usr/bin/qcad
 
   chmod 0755 "$pkgdir"/usr/bin/qcad

Reply via email to