wok rev 589

Add: get-google-earth MesaLib MesaLib-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 16 10:18:03 2008 +0000 (2008-04-16)
parents 1f64c55082ab
children 1d6e0fb6f8a1
files MesaLib-dev/receipt MesaLib/receipt get-google-earth/receipt get-google-earth/stuff/get-google-earth
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MesaLib-dev/receipt	Wed Apr 16 10:18:03 2008 +0000
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="MesaLib-dev"
     1.7 +VERSION="7.0.3"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="3D Graphics Library."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://mesa3d.sourceforge.net/"
    1.12 +WANTED="MesaLib"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr
    1.18 +	cp -a $_pkg/usr/local/include $fs
    1.19 +}
    1.20 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/MesaLib/receipt	Wed Apr 16 10:18:03 2008 +0000
     2.3 @@ -0,0 +1,28 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="MesaLib"
     2.7 +VERSION="7.0.3"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="3D Graphics Library."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.12 +SOURCE="Mesa"
    2.13 +WEB_SITE="http://mesa3d.sourceforge.net/"
    2.14 +WGET_URL="$SF_MIRROR/mesa3d/$TARBALL"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{ 
    2.19 +	ln -s $src $PACKAGE-$VERSION
    2.20 +	cd $src
    2.21 +	make linux-x86
    2.22 +	make DESTDIR=$PWD/_pkg install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr
    2.29 +	cp -a $_pkg/usr/local/lib $fs
    2.30 +}
    2.31 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/get-google-earth/receipt	Wed Apr 16 10:18:03 2008 +0000
     3.3 @@ -0,0 +1,16 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="get-google-earth"
     3.7 +VERSION="1.00"
     3.8 +CATEGORY="non-free"
     3.9 +SHORT_DESC="Get Google Earth."
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +WEB_SITE="http://earth.google.com/"
    3.12 +
    3.13 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.14 +genpkg_rules()
    3.15 +{
    3.16 +	mkdir -p $fs/usr/bin
    3.17 +	cp stuff/get-google-earth $fs/usr/bin
    3.18 +}
    3.19 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/get-google-earth/stuff/get-google-earth	Wed Apr 16 10:18:03 2008 +0000
     4.3 @@ -0,0 +1,52 @@
     4.4 +#!/bin/sh -e
     4.5 +
     4.6 +if test $(id -u) != 0 ; then
     4.7 +	echo -e "\nYou must be root to run `basename $0`."
     4.8 +	echo -e "Please type 'su' and root password to become super-user.\n"
     4.9 +	exit 0
    4.10 +fi
    4.11 +
    4.12 +if [ -d /var/lib/tazpkg/installed/google-earth ]; then
    4.13 +  tazpkg remove google-earth
    4.14 +  [ -d /var/lib/tazpkg/installed/google-earth ] && exit 1
    4.15 +fi
    4.16 +
    4.17 +# Download tarball
    4.18 +###wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin"
    4.19 +chmod +x GoogleEarthLinux.bin
    4.20 +
    4.21 +VERSION=$(head GoogleEarthLinux.bin | grep ^label | sed 's/.*Linux \(.*\)"/\1/')
    4.22 +
    4.23 +# Extract
    4.24 +./GoogleEarthLinux.bin
    4.25 +
    4.26 +# Create pseudo package
    4.27 +mkdir -p fs/usr/bin
    4.28 +cp /usr/bin/get-google-earth fs/usr/bin
    4.29 +find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz
    4.30 +find /usr/local/google-earth > files.list
    4.31 +cat >> files.list <<EOT
    4.32 +/usr/share/applications/defaults.list
    4.33 +/usr/share/applications/Google-googleearth.desktop
    4.34 +/sbin/googleearth
    4.35 +EOT
    4.36 +cat > receipt <<EOT
    4.37 +PACKAGE="google-earth"
    4.38 +VERSION="$VERSION"
    4.39 +CATEGORY="non-free"
    4.40 +SHORT_DESC="3D planet viewer."
    4.41 +WEB_SITE="http://earth.google.com/"
    4.42 +DEPENDS="MesaLib"
    4.43 +EOT
    4.44 +cpio -o -H newc > google-earth-$VERSION.tazpkg <<EOT
    4.45 +receipt
    4.46 +files.list
    4.47 +fs.cpio.gz
    4.48 +EOT
    4.49 +
    4.50 +# Install pseudo package
    4.51 +tazpkg install google-earth-$VERSION.tazpkg
    4.52 +
    4.53 +# Clean
    4.54 +###rm -f GoogleEarthLinux.bin
    4.55 +