summaryrefslogtreecommitdiff
path: root/community/qcad
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-10 00:05:35 -0700
committerroot <root@rshg054.dnsready.net>2013-04-10 00:05:35 -0700
commit5aa2d7527764c179fd31c1c3505b572773224c94 (patch)
treedab2ddabc34967d36bbaddd28a03cc4205249ff0 /community/qcad
parent3ed77738bb8ca1f34153c9ecd0190ef6ad054f57 (diff)
Wed Apr 10 00:05:35 PDT 2013
Diffstat (limited to 'community/qcad')
-rw-r--r--community/qcad/PKGBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD
index 610f3b6a4..3f5c8d942 100644
--- a/community/qcad/PKGBUILD
+++ b/community/qcad/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 77657 2012-10-13 11:44:42Z allan $
+# $Id: PKGBUILD 88003 2013-04-09 21:45:04Z eric $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>
@@ -19,17 +19,14 @@ source=(http://www.ribbonsoft.com/archives/$pkgname/$pkgname-$pkgver-1-community
QCad.desktop
qcad-intptr.patch
qcad.patch)
- # http://ghost1227.com/files/misc/qm.tar.gz)
md5sums=('96b6a56027782aec953c9c4e64c5998c'
'da32fec0d2fb85d96126bf28bb0ab9ff'
'b4d1eb6724b4b41f191f1ab6fd859c39'
'92f900fe1fd3a8f841232b587b49c7da'
'7e6779b1e3b10da1eb4daf36d93f8479')
+# http://ghost1227.com/files/misc/qm.tar.gz)
build() {
- export PATH="/opt/qt/bin:$PATH"
- export QTDIR=/opt/qt
-
cd ${srcdir}/${pkgname}-2.0.5.0-1-community.src
[ "$CARCH" = "x86_64" ] && {
@@ -40,7 +37,11 @@ build() {
sed -i "s:"-pedantic"::g" mkspecs/defs.pro
cd scripts
- ./build_qcad.sh notrans
+ sed -i "s|INCLUDEPATH += ../include|INCLUDEPATH += ../include /usr/include/qt3|" ../*/src/*.pro
+ sed -i "s|../../qcadlib/include|../../qcadlib/include /usr/include/qt3|" ../qcad/src/qcad.pro
+ sed -i "s/qmake/qmake-qt3/" build_qcad.sh
+ sed -i 's|eval $MAKE|sed -i "s/-lqt/-lqt-mt/" ../qcad/src/Makefile;eval $MAKE|' build_qcad.sh
+ QTDIR=/usr/lib/qt3 ./build_qcad.sh notrans
}
package() {