wok-6.x annotate stellarium/receipt @ rev 24313

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 21 10:59:24 2022 +0000 (2022-01-21)
parents 380ffe05937a
children 1805f71c5d9f
rev   line source
slaxemulator@6526 1 # SliTaz package receipt.
slaxemulator@6526 2
slaxemulator@6526 3 PACKAGE="stellarium"
slaxemulator@11002 4 VERSION="0.11.0"
slaxemulator@6526 5 CATEGORY="games"
slaxemulator@6526 6 SHORT_DESC="A stellarium with great graphics and a nice database of sky-objects"
slaxemulator@6526 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15000 8 LICENSE="GPL2"
slaxemulator@6526 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@8640 10 WEB_SITE="http://www.stellarium.org/"
slaxemulator@6526 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@6526 12
pascal@13796 13 DEPENDS="libpng mesa glib freetype openssl libQtScript libQtOpenGL libQtSql \
pascal@13796 14 libQtNetwork libQtGui zlib"
pascal@13796 15 BUILD_DEPENDS="gettext perl cmake libboost-dev libboost-thread-dev mesa-dev \
monghitri@13992 16 qt4 Qt4-dev qmake zlib-dev pkg-config xorg-libX11-dev libdrm"
slaxemulator@11002 17
pascal@24313 18 # What is the latest version available today?
pascal@24313 19 current_version()
pascal@24313 20 {
pascal@24313 21 wget -O - $WEB_SITE 2>/dev/null | sed '/latest/!d;s|.* is ||;s|<.*||;q'
pascal@24313 22 }
pascal@24313 23
slaxemulator@6526 24 # Rules to configure and make the package.
slaxemulator@6526 25 compile_rules()
slaxemulator@6526 26 {
slaxemulator@6526 27 cd $src
slaxemulator@6526 28 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE || return 1
slaxemulator@8640 29 make
slaxemulator@11002 30 make DESTDIR=$DESTDIR install
slaxemulator@6526 31 }
slaxemulator@6526 32
slaxemulator@6526 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6526 34 genpkg_rules()
slaxemulator@6526 35 {
slaxemulator@6526 36 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
pascal@13796 37 cp -a $install/usr/bin $fs/usr
pascal@13796 38 cp -a $install/usr/share/stellarium $fs/usr/share
slaxemulator@6526 39 }