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