summaryrefslogtreecommitdiff
path: root/community/qcad
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/qcad
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/qcad')
-rw-r--r--community/qcad/PKGBUILD69
-rw-r--r--community/qcad/QCad.desktop9
2 files changed, 78 insertions, 0 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD
new file mode 100644
index 000000000..f133adb14
--- /dev/null
+++ b/community/qcad/PKGBUILD
@@ -0,0 +1,69 @@
+# $Id: PKGBUILD 95459 2013-08-12 13:58:43Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: Giovanni Scafora <linuxmania@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=qcad
+pkgver=3.2.0.0
+pkgrel=1
+pkgdesc="A 2D CAD package based upon Qt"
+arch=('i686' 'x86_64')
+url="http://www.ribbonsoft.com/qcad.html"
+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=('6dd9c47742a0193a739d390e81ca67d0'
+ '8c4288986b78b14a813b005e81b6ba53')
+
+prepare() {
+ cd ${srcdir}/qcad-$pkgver
+ sed -i '1,1i#include <unistd.h>' src/core/{RLocalPeer,RS}.cpp
+ sed -i '1,1i#include <sys/sysinfo.h>' src/core/{RScriptHandler,RS}.cpp
+ (cd src/3rdparty &&
+ cp -a qt-labs-qtscriptgenerator-4.8.4 qt-labs-qtscriptgenerator-4.8.5)
+ (cd src/3rdparty/qt-labs-qtscriptgenerator-4.8.5 &&
+ mv qt-labs-qtscriptgenerator-4.8.4.pro qt-labs-qtscriptgenerator-4.8.5.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\ncd /usr/share/qcad\nLD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH exec ./qcad-bin' >$pkgdir/usr/bin/qcad
+ chmod 0755 $pkgdir/usr/bin/qcad
+}
diff --git a/community/qcad/QCad.desktop b/community/qcad/QCad.desktop
new file mode 100644
index 000000000..5841b786e
--- /dev/null
+++ b/community/qcad/QCad.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=/usr/share/qcad/qcad
+Icon=/usr/share/pixmaps/qcad_icon.png
+Name=QCad
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Application;Office;