wok-current annotate marble/receipt @ rev 24053

Up slitaz-boot-script (471)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 27 13:42:59 2021 +0000 (2021-05-27)
parents 04d1aa7b70ca
children 34e801e0eb52
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@18752 26
pascal@18752 27 # remove unwanted files
pascal@18752 28 cd $DESTDIR/usr/share/applications
pascal@18752 29 mv marble_osm.desktop marble.desktop
pascal@18752 30 for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do
pascal@18752 31 sed -i "s|MimeType.*|&$i|" marble.desktop
pascal@18752 32 done
pascal@18752 33 rm -f marble_*.desktop marble-*.desktop
pascal@17954 34 }
pascal@17954 35
pascal@17954 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17954 37 genpkg_rules()
pascal@17954 38 {
pascal@17954 39 cp -a $install/usr $fs
al@18748 40
al@18748 41 # remove unwanted files
al@18748 42 rm -rf $fs/usr/include
al@18748 43 rm -rf $fs/usr/share/marble/cmake
al@18748 44 rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch
pascal@17954 45 }