You are not logged in.
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
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
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
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
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
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
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
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
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
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
It works ok with 7z.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Source code is available at http://svn.shamangrad.net/zcad/trunk/.
Offline
Yeah, but without a comprehensible build system. I mentioned that in my first post. You can't exactly use Lazarus in a PKGBUILD.
Offline