wok-current rev 16263

ARM: add yad and slitaz-boxes
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 05 08:48:26 2014 +0200 (2014-04-05)
parents 5072c50fafc5
children d51b2411e55e
files slitaz-configs-base/receipt slitaz-tools-boxes/receipt yad/receipt
line diff
     1.1 --- a/slitaz-configs-base/receipt	Sat Apr 05 08:24:32 2014 +0200
     1.2 +++ b/slitaz-configs-base/receipt	Sat Apr 05 08:48:26 2014 +0200
     1.3 @@ -34,7 +34,7 @@
     1.4  			cp -a $src/rootfs/usr/share/pixmaps $fs/usr/share 
     1.5  			cp -a $src/rootfs/usr/share/themes $fs/usr/share
     1.6  			cp -a $src/rootfs/usr/share/slitaz $fs/usr/share 
     1.7 -			cp -a $src/etc/lxpanel $fs/etc ;;
     1.8 +			cp -a $src/rootfs/etc/lxpanel $fs/etc ;;
     1.9  		*)
    1.10  			mkdir -p \
    1.11  				$fs/etc \
     2.1 --- a/slitaz-tools-boxes/receipt	Sat Apr 05 08:24:32 2014 +0200
     2.2 +++ b/slitaz-tools-boxes/receipt	Sat Apr 05 08:48:26 2014 +0200
     2.3 @@ -11,7 +11,9 @@
     2.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     2.5  WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.gz"
     2.6  CONFIG_FILES="/etc/wireless"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9 +GENERIC_MENUS="no"
    2.10  DEPENDS="slitaz-tools gtkdialog gettext-base yad"
    2.11  
    2.12  # Rules to configure and make the package.
    2.13 @@ -25,6 +27,12 @@
    2.14  {
    2.15  	mkdir -p $fs
    2.16  	cp -a $install/* $fs
    2.17 +	# No cdrom on emb devices
    2.18 +	case "$ARCH" in
    2.19 +		arm*) 
    2.20 +			rm -f $fs/usr/bin/burn-box 
    2.21 +			rm -f $fs/usr/share/applications/burn-*.desktop ;;
    2.22 +	esac
    2.23  	chmod 0644 $fs/usr/share/locale/*/*/*.mo
    2.24  	chown -R root.root $fs
    2.25  }
     3.1 --- a/yad/receipt	Sat Apr 05 08:24:32 2014 +0200
     3.2 +++ b/yad/receipt	Sat Apr 05 08:48:26 2014 +0200
     3.3 @@ -2,6 +2,7 @@
     3.4  
     3.5  PACKAGE="yad"
     3.6  VERSION="0.26.0"
     3.7 +VERSION_NOTE="latest"
     3.8  CATEGORY="utilities"
     3.9  SHORT_DESC="Display graphical dialogs from shell scripts or command line"
    3.10  MAINTAINER="devl547@gmail.com"
    3.11 @@ -10,19 +11,23 @@
    3.12  WEB_SITE="http://sourceforge.net/projects/yad-dialog/"
    3.13  WGET_URL="$SF_MIRROR/project/yad-dialog/$TARBALL"
    3.14  TAGS="gtk2"
    3.15 -VERSION_NOTE="latest"
    3.16 +HOST_ARCH="i486 arm"
    3.17  
    3.18  DEPENDS="gtk+"
    3.19 -BUILD_DEPENDS="gtk+-dev optipng"
    3.20 +BUILD_DEPENDS="gtk+-dev"
    3.21 +
    3.22 +case "$ARCH" in
    3.23 +	i?86) BUILD_DEPENDS="$BUILD_DEPENDS optipng" ;;
    3.24 +esac
    3.25  
    3.26  # Rules to configure and make the package.
    3.27  compile_rules()
    3.28  {
    3.29  	patch -p1 < $stuff/ru.patch
    3.30  	./configure \
    3.31 -		--enable-icon-browser &&
    3.32 -	make &&
    3.33 -	make install
    3.34 +		--enable-icon-browser \
    3.35 +		$CONFIGURE_ARGS &&
    3.36 +	make && make install &&
    3.37  	optipng -quiet -zc1-9 -zm1-9 -zs0-3 -f0-5 \
    3.38  		$install/usr/share/icons/hicolor/48x48/apps/yad.png
    3.39  }
    3.40 @@ -31,7 +36,7 @@
    3.41  genpkg_rules()
    3.42  {
    3.43  	usih=/usr/share/icons/hicolor
    3.44 -	mkdir -p $fs$usih
    3.45 +	mkdir -p ${fs}$usih
    3.46  	cp -a $install/usr/bin $fs/usr
    3.47 -	cp -a $install$usih/48x48 $fs$usih
    3.48 +	cp -a ${install}$usih/48x48 ${fs}$usih
    3.49  }