wok-tiny annotate fr/receipt @ rev 3
Add fr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 01 23:10:07 2011 +0100 (2011-02-01) |
parents | |
children | 943c1a94316d |
rev | line source |
---|---|
pascal@3 | 1 # SliTaz package receipt. |
pascal@3 | 2 |
pascal@3 | 3 PACKAGE="fr" |
pascal@3 | 4 VERSION="1.0" |
pascal@3 | 5 CATEGORY="tiny-slitaz" |
pascal@3 | 6 SHORT_DESC="FR keyboard and locales" |
pascal@3 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@3 | 8 WEB_SITE="http://mirror.slitaz.org/pizza/tiny/" |
pascal@3 | 9 DEPENDS="base-tiny" |
pascal@3 | 10 |
pascal@3 | 11 # Rules to configure and make the package. |
pascal@3 | 12 compile_rules() |
pascal@3 | 13 { |
pascal@3 | 14 mkdir -p fs/etc |
pascal@3 | 15 echo "Europe/Paris" > fs/etc/TZ |
pascal@3 | 16 echo "fr-latin1" > fs/etc/keymap.conf |
pascal@3 | 17 cat > fs/etc/locale.conf <<EOT |
pascal@3 | 18 LANG=fr_FR |
pascal@3 | 19 LC_ALL=fr_FR |
pascal@3 | 20 EOT |
pascal@3 | 21 while read pkg file ; do |
pascal@3 | 22 if [ ! -s $pkg*/fs$file ]; then |
pascal@3 | 23 tazpkg get $pkg |
pascal@3 | 24 tazpkg extract $pkg*.tazpkg |
pascal@3 | 25 fi |
pascal@3 | 26 mkdir -p fs$(dirname $file) |
pascal@3 | 27 mv $pkg*/fs$file fs$(dirname $file) || return 1 |
pascal@3 | 28 done << EOT |
pascal@3 | 29 kbd-busybox /usr/share/kmap/fr-latin1.kmap |
pascal@3 | 30 EOT |
pascal@3 | 31 } |
pascal@3 | 32 |
pascal@3 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3 | 34 genpkg_rules() |
pascal@3 | 35 { |
pascal@3 | 36 cp -a fs/. $fs |
pascal@3 | 37 } |