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