wok-current annotate marble/receipt @ rev 18751

marble: remove unwanted files (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 26 17:39:02 2015 +0200 (2015-12-26)
parents d6a5d594b6e3
children 98f4f9b31076
rev   line source
pascal@17954 1 # SliTaz package receipt.
pascal@17954 2
pascal@17954 3 PACKAGE="marble"
pascal@17954 4 VERSION="v15.03.97"
pascal@17954 5 CATEGORY="misc"
pascal@17954 6 SHORT_DESC="A virtual globe and world atlas."
pascal@17954 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17954 8 LICENSE="LGPL2.1 GPL3"
pascal@17954 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@17954 10 WEB_SITE="https://marble.kde.org/"
pascal@17954 11 BRANCH="$VERSION"
pascal@17954 12 WGET_URL="git|git://anongit.kde.org/marble"
pascal@17954 13 TAGS="globe atlas"
pascal@17954 14
pascal@17954 15 DEPENDS="libQtWebkit libQtDeclarative libQtDBus"
pascal@17955 16 BUILD_DEPENDS="git Qt4-dev cmake libQtDeclarative qmake"
pascal@17954 17
pascal@17954 18 # Rules to configure and make the package.
pascal@17954 19 compile_rules()
pascal@17954 20 {
pascal@17954 21 mkdir build; cd build
pascal@17954 22 cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE \
pascal@17954 23 -DCMAKE_INSTALL_PREFIX=/usr .. &&
pascal@17954 24 make &&
pascal@17954 25 make install
pascal@17954 26 }
pascal@17954 27
pascal@17954 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17954 29 genpkg_rules()
pascal@17954 30 {
pascal@17954 31 cp -a $install/usr $fs
pascal@18746 32 cd $fs/usr/share/applications
pascal@18746 33 mv marble_osm.desktop marble.desktop
pascal@18746 34 for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do
pascal@18746 35 sed -i "s|MimeType.*|&$i|" marble.desktop
pascal@18746 36 done
al@18748 37
al@18748 38 # remove unwanted files
al@18748 39 rm -rf $fs/usr/include
al@18748 40 rm -rf $fs/usr/share/marble/cmake
al@18748 41 rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch
al@18751 42 for i in '-mobile' '-touch' '-qt' '_gpx' '_kml'; do
al@18748 43 rm $fs/usr/share/applications/marble$i.desktop
al@18748 44 done
pascal@17954 45 }