wok-6.x view slitaz-tools/receipt @ rev 12882

Add kbd to ARM
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 25 23:26:50 2012 +0200 (2012-05-25)
parents 9ba57c7ee2b2
children 717938b0ed14
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools"
4 VERSION="5.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz tools provide installer and utils usable on termnial."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="slitaz-tools-boxes"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://mirror.slitaz.org/sources/tools/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base"
15 BUILD_DEPENDS="gettext"
17 # Handle multiarch compilation.
18 case "$ARCH" in
19 arm)
20 DEPENDS="slitaz-boot-scripts dialog gettext-base"
21 BUILD_DEPENDS="" ;;
22 esac
24 # Saved config file by package manager
25 CONFIG_FILES="
26 /etc/TZ
27 /etc/keymap.conf
28 /etc/locale.conf
29 /etc/firewall.conf
30 /etc/slitaz/applications.conf"
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 cd $src
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs
43 cp -a $install/* $fs
44 # Makefile bug in 5.0
45 cp -a $src/tinyutils/decode $fs/usr/bin
46 chmod 0644 $fs/usr/share/locale/*/*/*.mo
47 chown -R root.root $fs
48 }
50 # Pre install commands.
51 #pre_install()
52 #{
53 # Backup file to restore with post install
54 #echo "Creating backups of configs..."
55 #cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null
56 #cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null
57 #cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null
58 #cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null
59 #}
61 # Post install
62 #post_install()
63 #{
64 #echo "Restoring configs backups..."
65 #mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null
66 #mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null
67 #mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null
68 #mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null
69 #}