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