wok-6.x view xplanet/receipt @ rev 24108

Up rdesktop (1.9.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 08:31:51 2021 +0000 (2021-09-28)
parents af8a8f177c6c
children f9c2c6b32e72
line source
1 # SliTaz package receipt.
3 PACKAGE="xplanet"
4 VERSION="1.2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Render major planets into the X root window."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://xplanet.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="perl jpeg libpng zlib tiff xorg-libX11 freetype pango fontconfig \
14 glib xorg-libXau xorg-libXdmcp expat giflib xorg-libXss gcc-lib-base \
15 util-linux-uuid"
16 BUILD_DEPENDS="giflib-dev jpeg-dev libpng-dev zlib-dev tiff-dev \
17 xorg-libX11-dev freetype-dev pango-dev fontconfig-dev glib-dev \
18 xorg-libXau-dev xorg-libXdmcp-dev"
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Fix for gcc 4.4
31 for file in src/Satellite.cpp src/Separation.cpp ; do
32 grep -q cstdio $file || sed -i '2i\#include <cstdio>' $file
33 done
34 ./configure --prefix=/usr --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make &&
36 make -j1 DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $install/usr/share/xplanet $fs/usr/share
44 cp -a $install/usr/bin $fs/usr
45 }