diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 15:25:33 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 15:25:33 -0300 |
commit | cebf33d7109e0157a80f34d6136e212f0a28d274 (patch) | |
tree | a6464302c970f72581105b50ff0896e1f56def3d /community/qcad/PKGBUILD | |
parent | 1a65caeb80e2cc8c7b39262d72255124d0c8614e (diff) | |
parent | 5cb95ceee39e4691f768ea2fef60b8a106e92209 (diff) |
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/qcad/PKGBUILD')
-rw-r--r-- | community/qcad/PKGBUILD | 91 |
1 files changed, 51 insertions, 40 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD index 8fae12b29..2bee7ef10 100644 --- a/community/qcad/PKGBUILD +++ b/community/qcad/PKGBUILD @@ -1,57 +1,68 @@ -# $Id: PKGBUILD 90083 2013-05-06 19:39:17Z foutrelis $ +# $Id: PKGBUILD 91963 2013-05-30 10:15:36Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Stefan Husmann <stefan-husmann@t-online.de> # Contributor: Giovanni Scafora <linuxmania@gmail.com> -# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> pkgname=qcad -pkgver=2.0.5.0 -pkgrel=12 +pkgver=3.0.14.0 +pkgrel=1 pkgdesc="A 2D CAD package based upon Qt" arch=('i686' 'x86_64' 'mips64el') url="http://www.ribbonsoft.com/qcad.html" license=('GPL2') -depends=('qt3') +depends=('qtwebkit') makedepends=('glu') options=(libtool) -source=(http://www.ribbonsoft.com/archives/$pkgname/$pkgname-$pkgver-1-community.src.tar.gz - qcad.xpm - QCad.desktop - qcad-intptr.patch - qcad.patch) -md5sums=('96b6a56027782aec953c9c4e64c5998c' - 'da32fec0d2fb85d96126bf28bb0ab9ff' - 'b4d1eb6724b4b41f191f1ab6fd859c39' - '92f900fe1fd3a8f841232b587b49c7da' - '7e6779b1e3b10da1eb4daf36d93f8479') -# http://ghost1227.com/files/misc/qm.tar.gz) +source=($pkgname-$pkgver.zip::https://github.com/qcad/qcad/archive/v${pkgver}.zip + QCad.desktop) +md5sums=('2c460838235a95a4d969e508a75b8206' + '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 +} build() { - cd ${srcdir}/${pkgname}-2.0.5.0-1-community.src - - [ "$CARCH" = "x86_64" ] && { - patch -p1 < ../qcad-intptr.patch; - sed -i '1,1i#include <stdint.h>' qcadlib/src/engine/rs_layer.cpp qcadlib/src/engine/rs_entity.cpp; - } - patch -p1 < ../qcad.patch - sed -i "s:"-pedantic"::g" mkspecs/defs.pro - - cd scripts - 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 + cd ${srcdir}/qcad-$pkgver + + qmake-qt4 + make PREFIX=/usr CXX="g++ -fpermissive" } package() { - cd ${srcdir}/${pkgname}-2.0.5.0-1-community.src/qcad - - install -D -m755 qcad ${pkgdir}/usr/bin/qcad - install -d ${pkgdir}/usr/share/{qcad,pixmaps,applications} - install -m644 ../../qcad.xpm ${pkgdir}/usr/share/pixmaps/qcad.xpm - install -m644 ../../QCad.desktop \ - ${pkgdir}/usr/share/applications/QCad.desktop - cp -r fonts patterns data library machines ${pkgdir}/usr/share/qcad - #cp -r ${srcdir}/qm ${pkgdir}/usr/share/qcad/ + 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 release/* ${pkgdir}/usr/share/qcad + + install -m755 qcad ${pkgdir}/usr/share/qcad/qcad + install -m755 readme.txt ${pkgdir}/usr/share/qcad/readme.txt + + # qtwebkit + ln -s /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 -s ${sofiles} ${pkgdir}/usr/share/qcad/plugins/imageformats/${sofiles##/*/} + done + for sofiles in /usr/lib/qt4/plugins/sqldrivers/*.so + do + ln -s ${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\nexec ./qcad' >$pkgdir/usr/bin/qcad + chmod 0755 $pkgdir/usr/bin/qcad } |