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