You are not logged in.

#1 2013-12-02 17:31:30

Ravenman
Member
Registered: 2009-07-03
Posts: 236

[Request] ZCAD Simple CAD program

Hi to everyone:

Could anyone package this?: ZCAD big_smile

ZCAD is a simple CAD program with dxf2000 file format support.

More info here

A lot of thanks. smile

Offline

#2 2013-12-02 19:06:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

I'm seeing it's own dir structure, no source tarballs, and only a Lazarus build system. Probably easiest to just download the pre-built tarballs on sourceforge and dump everything in /opt (for a PKGBUILD) or in your home dir (to just use it).

Offline

#3 2013-12-02 19:34:33

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [Request] ZCAD Simple CAD program

There's a little bit of hint of how to make fpc PKGBUILDS in the wiki


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2013-12-02 20:14:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

I would do something like this:

pkgbase=zcad
pkgname=$pkgbase
true && pkgname=("$pkgbase-common" "$pkgbase-gtk" "$pkgbase-qt")
pkgver=0.9_svn778
pkgrel=1
pkgdesc="Simple CAD program"
arch=('x86_64')
url="http://shamangrad.ru/project.php?act=view&prj=zcad"
license=('GPL2' 'LGPL2' 'custom')
source=("http://sourceforge.net/projects/zcad/files/Linux%20x86_64/${pkgbase}_v${pkgver}.7z"
#       'http://svn.shamangrad.ru/zcad/trunk/COPYING.LGPL.txt'
#       'http://svn.shamangrad.ru/zcad/trunk/COPYING.modifiedLGPL.txt'
       )
sha256sums=('fc1b06911d67eefb231e8ca9ed33e934e1de9afff9aea4de552636ec88e7fcf8'
#           'SKIP'
#           'SKIP'
           )

package_zcad-common() {
  cd "$srcdir/cad"

  install -dm755 "$pkgdir/opt/zcad"
  cp -a * "$pkgdir/opt/zcad/"
  rm "$pkgdir/opt/zcad/"zcad-{gtk,qt}

#  install -Dm644 "$srcdir/COPYING.LGPL.txt" "$pkgdir/usr/share/licenses/$pkgbase/COPYING.LGPL.txt"
#  install -Dm644 "$srcdir/COPYING.modifiedLGPL.txt" "$pkgdir/usr/share/licenses/$pkgbase/COPYING.modifiedLGPL.txt"
}

package_zcad-gtk() {
  depends=('zcad-common' 'gtk2')

  install -Dm755 "$srcdir/cad/zcad-gtk" "$pkgdir/opt/zcad/zcad-gtk"
  install -dm755 "$pkgdir/usr/bin"
  ln -s "/opt/zcad/zcad-gtk" "$pkgdir/usr/bin/zcad-gtk"
}

package_zcad-qt() {
  depends=('zcad-common' 'qt4pas')

  install -Dm755 "$srcdir/cad/zcad-qt" "$pkgdir/zopt/cad/zcad-qt"
  install -dm755 "$pkgdir/usr/bin"
  ln -s "/opt/zcad/zcad-qt" "$pkgdir/usr/bin/zcad-qt"
}

The licenses are commented out because of an SSL problem on the server end. Probably just need to download them manually.

Last edited by Scimmia (2013-12-02 20:21:38)

Offline

#5 2013-12-02 21:17:42

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [Request] ZCAD Simple CAD program

I just downloaded zcad and it can be un7z'd and run directly with zcad-qt or zcad-gtk


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2013-12-02 21:21:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Request] ZCAD Simple CAD program

nomorewindows wrote:

I just downloaded zcad and it can be un7z'd and run directly with zcad-qt or zcad-gtk

Yup.
Scimmia's PKGBUILD makes it easier to update (via pacman) and puts it in the $PATH.

Offline

#7 2013-12-02 23:19:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

nomorewindows wrote:

I just downloaded zcad and it can be un7z'd and run directly with zcad-qt or zcad-gtk

I mentioned that in my first post. Personally, I don't like having programs in my home dir like that; you'd want to add it to $PATH and that gets pretty hacky as you do more and more. If it was just in ~/bin, no problem, but for programs that need their own file structure, it's usually best to put things in /opt and use either symlinks or small scripts in /usr/bin/ (or /usr/local/bin/ if you're not using a PKGBUILD).

Doing a PKGBUILD also adds the nice feature of dependency resolution. qt4pas isn't exactly a common package to have installed. Splitting the package up is nice as well.

Offline

#8 2013-12-02 23:37:57

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [Request] ZCAD Simple CAD program

It might need qt4pas if you use zcad-qt.  This might just be an optional dependency.  No problem with the PKGBUILD but I was curious as to whether it would compile out of the box.  Untarring is all that it needs.  It won't makepkg when I use your snipet though, I get

bsdtar: Pathname cannot be converted from UTF-16LE to current locale.
/usr/bin/makepkg: line 390:  5015 Segmentation fault      (core dumped) $cmd -xf "$file"

I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#9 2013-12-02 23:46:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

Some of the dir names extracted are in russian. bsdtar handles them just fine for me, can you try just extracting the 7z file manually with "bsdtar -xf <filename>"? How about "LC_ALL=C bsdtar xf <filename>"?

The zcad-qt binary is dynamically linked to libQt4Pas.so.5. qt4pas is required.

Last edited by Scimmia (2013-12-02 23:48:18)

Offline

#10 2013-12-02 23:53:33

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [Request] ZCAD Simple CAD program

Scimmia wrote:

Some of the dir names extracted are in russian. bsdtar handles them just fine for me, can you try just extracting the 7z file manually with "bsdtar -xf <filename>"? How about "LC_ALL=C bsdtar xf <filename>"?

The zcad-qt binary is dynamically linked to libQt4Pas.so.5. qt4pas is required.

Neither worked.
I'm also getting

 bsdtar[5015]: segfault at 0 ip 0000000000408608 sp 00007fff03af7380 error 4 in bsdtar[400000+97000]

in my dmesg.  Maybe I have something else going on?

Last edited by nomorewindows (2013-12-02 23:57:14)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#11 2013-12-03 00:20:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

Something is definitely wrong with your bsdtar/libarchive, but I don't know what. I took a quick look through their bug tracker and the commit list since the last release, I didn't see anything that jumped out at me as being related. This might need a new bug report.

Offline

#12 2013-12-03 22:54:47

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [Request] ZCAD Simple CAD program

It works ok with 7z.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#13 2014-01-08 15:11:58

mickele
Member
Registered: 2008-07-08
Posts: 15
Website

Re: [Request] ZCAD Simple CAD program

Source code is available at http://svn.shamangrad.net/zcad/trunk/.

Offline

#14 2014-01-08 16:51:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Request] ZCAD Simple CAD program

Yeah, but without a comprehensible build system. I mentioned that in my first post. You can't exactly use Lazarus in a PKGBUILD.

Offline

Board footer

Powered by FluxBB