You are not logged in.

#1 2005-07-11 00:40:18

giovanni
Developer
From: Livorno, Italy
Registered: 2005-04-07
Posts: 68

[NEW] qcad 2.0.4.0

PKGBUILD

# Contributor: Giovanni Scafora <linuxmania@gmail.com>
pkgname=qcad
pkgver=2.0.4.0
pkgrel=1
pkgdesc="A 2D CAD package based upon Qt"
url="http://www.ribbonsoft.com/qcad.html"
license=""
depends=('qt')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.ribbonsoft.com/archives/$pkgname/$pkgname-$pkgver-1.src.tar.gz compile.patch)
md5sums=('d99ae2855029af21f544e302a60d6840' '4ddf9c6c50a86c338a2232b43c610e80')

build () {
  cd $startdir/src/$pkgname-$pkgver-1.src
  patch -Np0 -i ../compile.patch
  cd scripts
  ./build_qcad.sh
  mkdir -p $startdir/pkg/usr/{bin,share/qcad}
  cd ../qcad
  cp qcad $startdir/pkg/usr/bin
  cp -r fonts patterns examples qm $startdir/pkg/usr/share/qcad
}

compile.patch

--- qcadlib/src/filters/rs_filterdxf.cpp    2004-09-14 22:13:02.000000000 +0200
+++ qcadlib/src/filters/rs_filterdxf.cpp    2004-11-05 23:38:40.818814457 +0100
@@ -509,7 +509,7 @@
         lss = RS2::Exact;
     }
 
-    mtext+=data.text;
+    mtext+=data.text.c_str();
 
     RS_String locallyEncoded = mtext;
     RS_String enc = RS_System::getEncoding(

Arch Linux forever
AUR & Pacman Italian Translations

Offline

#2 2005-07-11 10:57:51

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [NEW] qcad 2.0.4.0

hell yeah brotha! Damn skippy do! I've been looking for a cad program like this.

the only thing I would change in your PKGBUILD is

 cp qcad $startdir/pkg/usr/bin

to

 install -D -m755 qcad $startdir/pkg/usr/bin/qcad

then you can set permissions and create the directory (instead of including it in mkdir -p above) all in one shot.

Nice job!

Offline

#3 2005-07-11 15:16:37

giovanni
Developer
From: Livorno, Italy
Registered: 2005-04-07
Posts: 68

Re: [NEW] qcad 2.0.4.0

I have changed it in new release -2.

Look at: http://aur.archlinux.org/packages/qcad/qcad/

Thank you!  :idea:


Arch Linux forever
AUR & Pacman Italian Translations

Offline

#4 2005-07-11 15:41:19

giovanni
Developer
From: Livorno, Italy
Registered: 2005-04-07
Posts: 68

Re: [NEW] qcad 2.0.4.0

Also now i have added partlibrary, a collection of CAD files that can be used from the library browser of QCad.

Look at: http://aur.archlinux.org/packages/partl … rtlibrary/


Arch Linux forever
AUR & Pacman Italian Translations

Offline

Board footer

Powered by FluxBB