wok-6.x rev 10789

Up: slitaz-tools (4.3) - Use source Makefile to install files and so clean up receipt
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 22:36:01 2011 +0200 (2011-06-01)
parents c2e7c7baed66
children 2384f59bc171
files slitaz-tools-boxes/receipt slitaz-tools/receipt tazdrop/receipt
line diff
     1.1 --- a/slitaz-tools-boxes/receipt	Wed Jun 01 19:42:36 2011 +0200
     1.2 +++ b/slitaz-tools-boxes/receipt	Wed Jun 01 22:36:01 2011 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slitaz-tools-boxes"
     1.7 -VERSION="4.2.1"
     1.8 +VERSION="4.3"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="All SliTaz GTKdialog boxes to command line tools."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -10,37 +10,19 @@
    1.13  WEB_SITE="http://www.slitaz.org/"
    1.14  CONFIG_FILES="/etc/wireless"
    1.15  
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +    cd $src
    1.20 +    make && make DESTDIR=$DESTDIR install-boxes
    1.21 +}
    1.22 +
    1.23  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.24  genpkg_rules()
    1.25  {
    1.26 -	mkdir -p \
    1.27 -		$fs/etc/wireless \
    1.28 -		$fs/usr/bin \
    1.29 -		$fs/usr/sbin \
    1.30 -		$fs/usr/lib/slitaz \
    1.31 -		$fs/usr/share/locale \
    1.32 -		$fs/usr/share/slitaz/messages/en \
    1.33 -		$fs/usr/share/doc/slitaz-tools
    1.34 -	# Desktop files, icons and doc.
    1.35 -	cp -a $src/rootfs/usr/share/applications $fs/usr/share
    1.36 -	cp -a $src/rootfs/usr/share/pixmaps $fs/usr/share
    1.37 -	cp -a $src/doc/*.html $fs/usr/share/doc/slitaz-tools
    1.38 -
    1.39 -	# Libs.
    1.40 -	cp -a $src/lib/[a-z]* $fs/usr/lib/slitaz
    1.41 -	# Default English messages (will move to po)
    1.42 -	cp -a $src/messages/en/desktopbox.msg $fs/usr/share/slitaz/messages/en
    1.43 -	# i18n
    1.44 -	for l in `ls $src/po/mo`
    1.45 -	do
    1.46 -		mkdir -p $fs/usr/share/locale/$l/LC_MESSAGES
    1.47 -		cp -a $src/po/mo/$l/* $fs/usr/share/locale/$l/LC_MESSAGES
    1.48 -	done
    1.49 -	# Gksu fake for pcmanfm.
    1.50 -	cd $fs/usr/bin
    1.51 -	ln -s subox gksu
    1.52 -	cd $WOK/$PACKAGE
    1.53 -	# Permissions.
    1.54 +	install=$WOK/$PACKAGE/install
    1.55 +	mkdir -p $fs
    1.56 +	cp -a $install/* $fs
    1.57 +	chmod 0644 $fs/usr/share/locale/*/*/*.mo
    1.58  	chown -R root.root $fs
    1.59 -	chmod -R 755 $fs/usr/bin
    1.60  }
     2.1 --- a/slitaz-tools/receipt	Wed Jun 01 19:42:36 2011 +0200
     2.2 +++ b/slitaz-tools/receipt	Wed Jun 01 22:36:01 2011 +0200
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="slitaz-tools"
     2.7 -VERSION="4.2.1"
     2.8 +VERSION="4.3"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="SliTaz tools provide installer and utils usable on termnial."
    2.11  MAINTAINER="pankso@slitaz.org"
    2.12 @@ -24,54 +24,15 @@
    2.13  compile_rules()
    2.14  {
    2.15      cd $src
    2.16 -    make msgfmt
    2.17 +    make && make DESTDIR=$DESTDIR install
    2.18  }
    2.19  
    2.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.21 -#
    2.22 -# This package is moslty build by genpkg, it provide /usr/share/examples tree,
    2.23 -# tazlito, tinyutils, licenses, documentation and artwork. This package
    2.24 -# provide also the Firewall deamon/config (/etc/firewall.conf).
    2.25 -#
    2.26  genpkg_rules()
    2.27  {
    2.28 -	mkdir -p \
    2.29 -		$fs/sbin \
    2.30 -		$fs/usr/bin \
    2.31 -		$fs/usr/sbin \
    2.32 -		$fs/etc/X11 \
    2.33 -		$fs/var/spool/cron/crontabs \
    2.34 -		$fs/usr/share/slitaz/messages/en
    2.35 -	# /rootfs/*. Firewall exemples, licenses, pixmaps and desktop files.
    2.36 -	cp -a $src/rootfs/* $fs
    2.37 -	chmod +x $fs/etc/init.d/*
    2.38 -	rm -rf $fs/usr/share/applications
    2.39 -	rm -rf $fs/usr/share/pixmaps
    2.40 -	# Tinyutils and declare all config files.
    2.41 -	cp -a $src/tinyutils/tazlocale $fs/sbin
    2.42 -	touch $fs/etc/locale.conf
    2.43 -	touch $fs/etc/motd
    2.44 -	cp -a $src/tinyutils/tazkeymap $fs/sbin
    2.45 -	touch $fs/etc/keymap.conf
    2.46 -	touch $fs/etc/TZ
    2.47 -	cp -a $src/tinyutils/gztazmod.sh $fs/sbin
    2.48 -	cp -a $src/tinyutils/tazx $fs/usr/bin
    2.49 -	touch $fs/etc/X11/screen.conf
    2.50 -	cp -a $src/tinyutils/tazhw $fs/sbin
    2.51 -	cp -a $src/tinyutils/hwsetup $fs/sbin
    2.52 -	for app in startx history tazdialog editor browser terminal file-manager
    2.53 -	do
    2.54 -		cp -a $src/tinyutils/$app $fs/usr/bin
    2.55 -	done
    2.56 -	# Sound config
    2.57 -	cp -a $src/tinyutils/soundconf $fs/usr/sbin
    2.58 -	cp -a $src/tinyutils/setmixer $fs/usr/sbin
    2.59 -	# Installer's
    2.60 -	cp -a $src/installer/slitaz-installer $fs/usr/bin
    2.61 -	cp -a $src/messages/en/installer.msg $fs/usr/share/slitaz/messages/en
    2.62 +	mkdir -p $fs
    2.63 +	cp -a $install/* $fs
    2.64  	chown -R root.root $fs
    2.65 -	chmod -R 755 $fs/usr/bin
    2.66 -	chmod -R 755 $fs/sbin
    2.67  }
    2.68  
    2.69  # Pre install commands.
     3.1 --- a/tazdrop/receipt	Wed Jun 01 19:42:36 2011 +0200
     3.2 +++ b/tazdrop/receipt	Wed Jun 01 22:36:01 2011 +0200
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="tazdrop"
     3.7 -VERSION="4.2.1"
     3.8 +VERSION="4.3"
     3.9  CATEGORY="office"
    3.10  SHORT_DESC="SliTaz desktop Drag N' Drop tool"
    3.11  MAINTAINER="pankso@slitaz.org"