wok-current annotate marble/receipt @ rev 18746
marble: one desktop entry only
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 26 11:26:22 2015 +0100 (2015-12-26) |
parents | c4dac50ef51f |
children | 4f656577488b |
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 |
pascal@18746 | 37 rm -f marble_* |
pascal@17954 | 38 } |