wok-next annotate marble/receipt @ rev 20014

Up leptonica (1.74.4). abiword, emacs: up bdeps. marble: fix build.
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Oct 21 21:21:28 2017 +0200 (2017-10-21)
parents 8d090f5aece0
children c0521c689857
rev   line source
pascal@17954 1 # SliTaz package receipt.
pascal@17954 2
pascal@17954 3 PACKAGE="marble"
psychomaniak@20012 4 VERSION="v17.08.2"
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
psychomaniak@20012 15 DEPENDS="qt5-base "
psychomaniak@20013 16 BUILD_DEPENDS="git qt5-dev cmake xorg-dev mesa17-dev zlib-dev "
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
psychomaniak@20014 28 # cd $DESTDIR/usr/share/applications
psychomaniak@20014 29 # mv marble_osm.desktop marble.desktop
psychomaniak@20014 30 # for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do
psychomaniak@20014 31 # sed -i "s|MimeType.*|&$i|" marble.desktop
psychomaniak@20014 32 # done
psychomaniak@20014 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
psychomaniak@20014 44 # rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch
pascal@17954 45 }