wok annotate stellarium/receipt @ rev 25778
Up fdutils (5.6), lite (1.11), vlgothic-fonts (20230918)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 20 09:06:10 2024 +0000 (2 months ago) |
parents | 0c04fc34847a |
children |
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/" |
pascal@24976 | 11 WGET_URL="https://github.com/Stellarium/stellarium/archive/refs/tags/stellarium-${VERSION//./-}.tar.gz" |
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 } |