wok-next annotate qcad/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children 5ffe59e2de3a
rev   line source
pankso@17448 1 # SliTaz package receipt.
pankso@17448 2
pankso@17448 3 PACKAGE="qcad"
pankso@17448 4 VERSION="3.7.5"
pankso@17448 5 CATEGORY="network"
al@21020 6 SHORT_DESC="The Open Source CAD System For Everyone"
al@21020 7 MAINTAINER="devel@slitaz.org"
pankso@17448 8 LICENSE="GPL3"
al@21020 9 WEB_SITE="http://www.qcad.org/"
pankso@17448 10
al@21020 11 TARBALL="$PACKAGE-$VERSION-linux-x86_32.tar.gz"
al@21020 12 WGET_URL="http://www.qcad.org/archives/qcad/$TARBALL"
pankso@17448 13
al@21020 14
al@21020 15 compile_rules() {
pankso@17448 16 mkdir -p \
al@21020 17 $install/usr/bin \
al@21020 18 $install/usr/lib/$PACKAGE \
al@21020 19 $install/usr/share/pixmaps
al@21020 20 cp -a $src/* $install/usr/lib/$PACKAGE
pankso@17448 21 # /usr/bin/qcad + pixmap
al@21020 22 install -m 0755 $stuff/qcad $install/usr/bin/qcad
pankso@17448 23 ln -s ../../lib/qcad/qcad_icon.png \
al@21020 24 $install/usr/share/pixmaps/$PACKAGE.png
pankso@17448 25 # We use our packed deps
pankso@17448 26 echo "Cleaning installed files..."
al@21020 27 cd $install/usr/lib/$PACKAGE
pankso@17448 28 rm qcad \
pankso@17448 29 libQtWebKit.* libQtGui.* libQtDesigner* libQtXml* \
pankso@17448 30 libQtDeclarative.* libQtCore.* libQtScript.* libQtNetwork.* \
pankso@17448 31 libQtCLucene.* libQtOpenGL.* libQtDBus.* libQtScriptTools.* \
pankso@17448 32 libQtHelp.* libQtSvg.* libQtSql.* libQtTest.* libQtMultimedia.*
pankso@17448 33 rm -rf examples/
pankso@17448 34 }
pankso@17448 35
al@21020 36 genpkg_rules() {
al@21020 37 mkdir -p $fs
al@21020 38 cp -a $install/* $fs
psychomaniak@18115 39
psychomaniak@18115 40 # exclude from files.list (for tazpkg-find-depends)
psychomaniak@18115 41 # not removed: exactly this version required ($fs/usr/lib/qcad/libfreetype.readme)
al@21020 42 cd $fs/usr/lib/qcad
psychomaniak@18115 43 mv -f libfreetype.so.6 lib-freetype-.-so-.-6
al@21020 44 DEPENDS="libQtWebkit libQtGui libQtDesigner libQtXml libQtDeclarative \
al@21020 45 libQtCore libQtScript libQtNetwork libQtClucene libQtOpenGL libQtDBus \
al@21020 46 libQtScriptTools libQtHelp libQtSvg libQtSql libQtTest libQtMultimedia"
pankso@17448 47 }
psychomaniak@18115 48
al@21020 49 post_install() {
al@21020 50 cd "$1/usr/lib/qcad"
psychomaniak@18115 51 mv -f lib-freetype-.-so-.-6 libfreetype.so.6
psychomaniak@18115 52 }