wok view xplanet/receipt @ rev 25505
Up bzip3 (1.2.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 06 16:45:49 2023 +0000 (21 months ago) |
parents | 7dd01dedad38 |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="xplanet"
4 VERSION="1.3.0"
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="https://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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 patch -p1 < $stuff/xplanet-giflib5.patch
32 ./configure --prefix=/usr --mandir=/usr/share/man $CONFIGURE_ARGS &&
33 make &&
34 make -j1 DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/share/xplanet $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 }