[arch-commits] Commit in qcad/repos/community-i686 (PKGBUILD QCad.desktop)

Sergej Pupykin spupykin at nymeria.archlinux.org
Fri May 16 11:57:00 UTC 2014


    Date: Friday, May 16, 2014 @ 13:56:59
  Author: spupykin
Revision: 111315

archrelease: copy trunk to community-i686

Added:
  qcad/repos/community-i686/PKGBUILD
    (from rev 111314, qcad/trunk/PKGBUILD)
  qcad/repos/community-i686/QCad.desktop
    (from rev 111314, qcad/trunk/QCad.desktop)

--------------+
 PKGBUILD     |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 QCad.desktop |    9 +++++++
 2 files changed, 76 insertions(+)

Copied: qcad/repos/community-i686/PKGBUILD (from rev 111314, qcad/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-05-16 11:56:59 UTC (rev 111315)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Giovanni Scafora <linuxmania at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=qcad
+pkgver=3.5.1.0
+pkgrel=1
+pkgdesc="A 2D CAD package based upon Qt"
+arch=('i686' 'x86_64')
+url="http://www.qcad.org"
+license=('GPL3')
+depends=('qtwebkit')
+makedepends=('glu')
+options=('libtool')
+source=($pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz
+        QCad.desktop)
+md5sums=('8515ba13cc8fa5b644864258afed219c'
+         '84f189dd152e7614a1265659dac6222d')
+
+prepare() {
+  cd ${srcdir}/qcad-$pkgver
+  sed -i '1,1i#include <stdint.h>' src/core/RThread.cpp
+  (cd src/3rdparty && cp -a qt-labs-qtscriptgenerator-4.8.5 qt-labs-qtscriptgenerator-4.8.6)
+  (cd src/3rdparty/qt-labs-qtscriptgenerator-4.8.6/ && mv qt-labs-qtscriptgenerator-4.8.5.pro qt-labs-qtscriptgenerator-4.8.6.pro)
+}
+
+build() {
+  cd ${srcdir}/qcad-$pkgver
+  qmake-qt4 -r
+  make all -j1
+}
+
+package() {
+  cd ${srcdir}/qcad-$pkgver
+
+  # remove project files
+  find . \( -name '*.pri' -or -name '.pro' -or -name '*.ts' \) -delete
+  find . \( -name 'Makefile' -name '.gitignore' \) -delete
+
+  install -dm755 ${pkgdir}/usr/share/{qcad,pixmaps,applications}
+  cp -r examples fonts libraries patterns plugins scripts ts ${pkgdir}/usr/share/qcad
+  cp debug/* ${pkgdir}/usr/share/qcad
+
+  install -m755 readme.txt ${pkgdir}/usr/share/qcad/readme.txt
+
+  # qtwebkit
+  ln -sf /usr/lib/qt4/plugins/designer/libqwebview.so ${pkgdir}/usr/share/qcad/plugins/designer/libqwebview.so
+  # qt
+  for sofiles in /usr/lib/qt4/plugins/imageformats/*.so
+  do
+    ln -sf ${sofiles} ${pkgdir}/usr/share/qcad/plugins/imageformats/${sofiles##/*/}
+  done
+  for sofiles in /usr/lib/qt4/plugins/sqldrivers/*.so
+  do
+    ln -sf ${sofiles} ${pkgdir}/usr/share/qcad/plugins/sqldrivers/${sofiles##/*/}
+  done
+
+  install -Dm644 scripts/qcad_icon.png ${pkgdir}/usr/share/pixmaps/qcad_icon.png
+  install -Dm644 $srcdir/QCad.desktop ${pkgdir}/usr/share/applications/QCad.desktop
+
+  install -dm0755 $pkgdir/usr/bin
+  echo -e '#!/bin/sh\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/share/qcad" exec /usr/share/qcad/qcad-bin "$@"' >$pkgdir/usr/bin/qcad
+
+  chmod 0755 $pkgdir/usr/bin/qcad
+}

Copied: qcad/repos/community-i686/QCad.desktop (from rev 111314, qcad/trunk/QCad.desktop)
===================================================================
--- QCad.desktop	                        (rev 0)
+++ QCad.desktop	2014-05-16 11:56:59 UTC (rev 111315)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=/usr/bin/qcad
+Icon=/usr/share/pixmaps/qcad_icon.png
+Name=QCad
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Application;Development;Electronics;Engineering;




More information about the arch-commits mailing list