wok view marble/receipt @ rev 24626

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 17:32:18 2022 +0000 (2022-03-07)
parents 98f4f9b31076
children
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - 'https://invent.kde.org/education/marble/-/tags?sort=updated_desc' 2>/dev/null | \
22 sed '/-\/tags\/v/!d;s|.*/v|v|;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build; cd build
29 cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE \
30 -DCMAKE_INSTALL_PREFIX=/usr .. &&
31 make &&
32 make install
34 # remove unwanted files
35 cd $DESTDIR/usr/share/applications
36 mv marble_osm.desktop marble.desktop
37 for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do
38 sed -i "s|MimeType.*|&$i|" marble.desktop
39 done
40 rm -f marble_*.desktop marble-*.desktop
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cp -a $install/usr $fs
48 # remove unwanted files
49 rm -rf $fs/usr/include
50 rm -rf $fs/usr/share/marble/cmake
51 rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch
52 }