wok-next view qcad/receipt @ rev 18727
Up firefox-official(43.0.1)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 19 12:01:26 2015 +0200 (2015-12-19) |
parents | b82e1590980d |
children | 9e01bc6321ea |
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 }