wok-next annotate marble/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c0521c689857
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
pascal@17954 2
pascal@17954 3 PACKAGE="marble"
psychomaniak@20012 4 VERSION="v17.08.2"
pascal@17954 5 CATEGORY="misc"
al@21020 6 SHORT_DESC="A virtual globe and world atlas"
pascal@17954 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17954 8 LICENSE="LGPL2.1 GPL3"
al@21020 9 WEB_SITE="https://marble.kde.org/"
al@21020 10
pascal@17954 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@17954 12 BRANCH="$VERSION"
pascal@17954 13 WGET_URL="git|git://anongit.kde.org/marble"
pascal@17954 14
al@21020 15 BUILD_DEPENDS="git qt5-dev cmake xorg-dev mesa-dev zlib-dev"
pascal@17954 16
al@21020 17 compile_rules() {
al@21020 18 mkdir build
al@21020 19 cd build
al@21020 20 cmake \
al@21020 21 -DCMAKE_BUILD_TYPE=Release \
al@21020 22 -DQTONLY=TRUE \
al@21020 23 -DCMAKE_INSTALL_PREFIX=/usr \
al@21020 24 .. &&
pascal@17954 25 make &&
pascal@17954 26 make install
pascal@18752 27
pascal@18752 28 # remove unwanted files
al@21020 29 # cd $install/usr/share/applications
psychomaniak@20014 30 # mv marble_osm.desktop marble.desktop
psychomaniak@20014 31 # for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do
psychomaniak@20014 32 # sed -i "s|MimeType.*|&$i|" marble.desktop
psychomaniak@20014 33 # done
psychomaniak@20014 34 # rm -f marble_*.desktop marble-*.desktop
pascal@17954 35 }
pascal@17954 36
al@21020 37 genpkg_rules() {
pascal@17954 38 cp -a $install/usr $fs
al@18748 39
al@18748 40 # remove unwanted files
al@18748 41 rm -rf $fs/usr/include
al@18748 42 rm -rf $fs/usr/share/marble/cmake
psychomaniak@20014 43 # rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch
al@21020 44 DEPENDS="qt5-base"
al@21020 45 TAGS="globe atlas"
pascal@17954 46 }