wok-next view qcad/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5ffe59e2de3a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="qcad"
4 VERSION="3.24.3.4"
5 CATEGORY="network"
6 SHORT_DESC="The Open Source CAD System For Everyone"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.qcad.org/en/"
11 TARBALL="$PACKAGE-$VERSION-linux-x86_32.tar.gz"
12 WGET_URL="http://www.qcad.org/archives/qcad/$TARBALL"
15 compile_rules()
16 {
17 mkdir -p \
18 $install/usr/bin \
19 $install/usr/lib/$PACKAGE \
20 $install/usr/share/pixmaps
22 cp -a $src/* $install/usr/lib/$PACKAGE
24 # /usr/bin/qcad + pixmap
25 install -m 0755 $stuff/qcad $install/usr/bin/qcad
26 ln -s ../../lib/qcad/qcad_icon.png \
27 $install/usr/share/pixmaps/$PACKAGE.png
29 # We use our packed deps
30 echo "Cleaning installed files..."
31 cd $install/usr/lib/$PACKAGE
32 rm qcad \
33 libQtWebKit.* libQtGui.* libQtDesigner* libQtXml* \
34 libQtDeclarative.* libQtCore.* libQtScript.* libQtNetwork.* \
35 libQtCLucene.* libQtOpenGL.* libQtDBus.* libQtScriptTools.* \
36 libQtHelp.* libQtSvg.* libQtSql.* libQtTest.* libQtMultimedia.*
37 rm -rf examples/
38 }
40 genpkg_rules()
41 {
42 mkdir -p $fs
43 cp -a $install/* $fs
45 # exclude from files.list (for tazpkg-find-depends)
46 # not removed: exactly this version required ($fs/usr/lib/qcad/libfreetype.readme)
47 cd $fs/usr/lib/qcad
48 mv -f libfreetype.so.6 lib-freetype-.-so-.-6
49 DEPENDS="libQtWebkit libQtGui libQtDesigner libQtXml libQtDeclarative \
50 libQtCore libQtScript libQtNetwork libQtClucene libQtOpenGL libQtDBus \
51 libQtScriptTools libQtHelp libQtSvg libQtSql libQtTest libQtMultimedia"
52 }
54 post_install()
55 {
56 cd "$1/usr/lib/qcad"
57 mv -f lib-freetype-.-so-.-6 libfreetype.so.6
58 }