wok-undigest rev 80

Added hinedo
author Liu Peng <rocky@slitaz.org>
date Sat Apr 24 00:57:22 2010 +0000 (2010-04-24)
parents ddee67212392
children 6e72e23f7cbd
files hinedo/receipt hinedo/stuff/libdir.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hinedo/receipt	Sat Apr 24 00:57:22 2010 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hinedo"
     1.7 +VERSION="0.4"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Hinet radio client."
    1.10 +MAINTAINER="rocky@slitaz.org"
    1.11 +DEPENDS="python mplayer gtk+"
    1.12 +BUILD_DEPENDS="gtk+-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://hinedo.openfoundry.org/"
    1.15 +WGET_URL="http://of.openfoundry.org/download_path/hinedo/2007.11.18/$TARBALL"
    1.16 +TAG="radio chinese"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +    cd $src
    1.22 +    while read file; do
    1.23 +        [ -f done.$file ] && continue
    1.24 +        echo "Apply $file..."
    1.25 +        patch -p1 < ../stuff/$file || return 1
    1.26 +        touch done.$file
    1.27 +    done <<EOT
    1.28 +libdir.patch
    1.29 +EOT
    1.30 +    make || return 1
    1.31 +    mkdir -p $src/_pkg/usr/bin
    1.32 +    make install DESTDIR=$PWD/_pkg
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +    mkdir -p $fs/usr
    1.39 +    cp -a $_pkg/usr/bin $fs/usr
    1.40 +    cp -a $_pkg/usr/share $fs/usr
    1.41 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/hinedo/stuff/libdir.patch	Sat Apr 24 00:57:22 2010 +0000
     2.3 @@ -0,0 +1,33 @@
     2.4 +--- hinedo-0.4/hinedo.c.orig	Tue Jun 23 14:44:11 2009
     2.5 ++++ hinedo-0.4/hinedo.c	Tue Jun 23 14:44:28 2009
     2.6 +@@ -27,7 +27,7 @@
     2.7 + 
     2.8 + #include "eggtrayicon.h"
     2.9 + 
    2.10 +-#define LIBDIR        PREFIX"/lib/hinedo"
    2.11 ++#define LIBDIR        PREFIX"/share/hinedo"
    2.12 + 
    2.13 + static const char* current = NULL;
    2.14 + static GPid pid = 0;
    2.15 +--- hinedo-0.4/Makefile.orig	Tue Jun 23 14:47:18 2009
    2.16 ++++ hinedo-0.4/Makefile	Tue Jun 23 14:47:36 2009
    2.17 +@@ -20,16 +20,16 @@
    2.18 + 
    2.19 + install: all
    2.20 + 	install -s hinedo $(PREFIX)/bin/hinedo
    2.21 +-	mkdir -p $(PREFIX)/lib/hinedo
    2.22 ++	mkdir -p $(PREFIX)/share/hinedo
    2.23 + 	mkdir -p $(PREFIX)/share/applications
    2.24 + 	mkdir -p $(PREFIX)/share/pixmaps
    2.25 + 	install hinedo.desktop $(PREFIX)/share/applications/hinedo.desktop
    2.26 + 	install hinedo.png $(PREFIX)/share/pixmaps/hinedo.png
    2.27 +-	install update $(PREFIX)/lib/hinedo/update
    2.28 ++	install update $(PREFIX)/share/hinedo/update
    2.29 + 
    2.30 + uninstall:
    2.31 + 	rm $(PREFIX)/bin/hinedo
    2.32 +-	rm -rf $(PREFIX)/lib/hinedo
    2.33 ++	rm -rf $(PREFIX)/share/hinedo
    2.34 + 	rm $(PREFIX)/share/pixmaps/hinedo.png
    2.35 + 	rm $(PREFIX)/share/applications/hinedo.desktop
    2.36 +