wok view qcad/receipt @ rev 19951
azdrawing: fix ressource path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 08 12:16:55 2017 +0200 (2017-05-08) |
parents | a97709a29fd3 |
children | 35739426d4fb |
line source
1 # SliTaz package receipt.
3 PACKAGE="qcad"
4 VERSION="3.7.5"
5 CATEGORY="network"
6 SHORT_DESC="The Open Source CAD System For Everyone."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="${PACKAGE}-${VERSION}-linux-x86_32.tar.gz"
10 WEB_SITE="http://www.qcad.org"
11 WGET_URL="http://www.qcad.org/archives/qcad/${TARBALL}"
12 HOST_ARCH="i486"
14 DEPENDS="libQtWebkit libQtGui libQtDesigner libQtXml libQtDeclarative \
15 libQtCore libQtScript libQtNetwork libQtClucene libQtOpenGL libQtDBus \
16 libQtScriptTools libQtHelp libQtSvg libQtSql libQtTest libQtMultimedia"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p \
22 ${install}/usr/bin \
23 ${install}/usr/lib/${PACKAGE} \
24 ${install}/usr/share/pixmaps
25 cp -a ${src}/* ${install}/usr/lib/${PACKAGE}
26 # /usr/bin/qcad + pixmap
27 install -m 0755 ${stuff}/qcad ${install}/usr/bin/qcad
28 ln -s ../../lib/qcad/qcad_icon.png \
29 ${install}/usr/share/pixmaps/${PACKAGE}.png
30 # We use our packed deps
31 echo "Cleaning installed files..."
32 cd ${install}/usr/lib/${PACKAGE}
33 rm qcad \
34 libQtWebKit.* libQtGui.* libQtDesigner* libQtXml* \
35 libQtDeclarative.* libQtCore.* libQtScript.* libQtNetwork.* \
36 libQtCLucene.* libQtOpenGL.* libQtDBus.* libQtScriptTools.* \
37 libQtHelp.* libQtSvg.* libQtSql.* libQtTest.* libQtMultimedia.*
38 rm -rf examples/
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p ${fs} && cp -a ${install}/* ${fs}
46 # exclude from files.list (for tazpkg-find-depends)
47 # not removed: exactly this version required ($fs/usr/lib/qcad/libfreetype.readme)
48 cd $fs/usr/lib/qcad
49 mv -f libfreetype.so.6 lib-freetype-.-so-.-6
50 }
52 post_install()
53 {
54 cd "$1/usr/lib/qcad"
55 mv -f lib-freetype-.-so-.-6 libfreetype.so.6
56 }