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