wok view glibc-locale/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents 590cd40daccf
children 9b7c1ea86466
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-locale"
4 VERSION="2.14.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The GNU C libraries locale files and utilities (see also locale-*)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WANTED="glibc"
10 WEB_SITE="http://www.gnu.org/software/libc/"
12 DEPENDS="glibc-base glibc-extra-samba"
14 LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/share $fs/usr/lib $fs/usr/bin
21 cp -a $install/usr/lib/gconv $fs/usr/lib
22 cp -a $install/usr/share/locale $fs/usr/share
23 cp -a $install/usr/share/i18n $fs/usr/share
24 cp -a $install/usr/share/zoneinfo $fs/usr/share
26 # Utilities and tools
27 cp -a $install/usr/bin/iconv $fs/usr/bin
28 cp -a $install/usr/bin/tzselect $fs/usr/bin
30 # Rm base files.
31 echo -n "* Removing all base files..."
32 for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list`
33 do
34 rm -f ${fs}$file
35 done
36 status
38 # Rm glibc-extra-samba files.
39 echo -n "* Removing extra samba files..."
40 for file in `cat $WOK/glibc-extra-samba/taz/glibc-extra-samba-$VERSION/files.list`
41 do
42 rm -f ${fs}$file
43 done
44 status
46 # Rm files provided by locale-pack.
47 for i in $LOCALE_PACK
48 do
49 echo -n "* Removing locale: $i"
50 rm -rf $fs/usr/share/locale/$i
51 status
52 done
53 }