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

slitaz-i18n: encodings are still used in translations and web pages, so add gconv modules to locale packages. Add: full set of locale-xx-extra. Up: all locale-xx, locale-xx-extra, slitaz-i18n, slitaz-i18n-extra (4.2). Up slitaz-tools, slitaz-tools-boxes (5.8.6)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 06 23:19:04 2014 +0300 (2014-05-06)
parents 9980d71e07ca
children b74605f8fa4b
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="5.8.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 SOURCE="slitaz-tools"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.gz"
13 CONFIG_FILES="/etc/wireless"
14 HOST_ARCH="i486 arm"
16 GENERIC_MENUS="no"
17 DEPENDS="slitaz-tools gettext-base yad"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 make && make DESTDIR=$DESTDIR install-boxes
24 # make zone-mini.tab for timezone selector
25 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
26 OUT=$install/usr/share/zoneinfo/zone-mini.tab
27 echo -n > $OUT
28 ZONES="$(cat $1 | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
29 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
30 echo -ne "$COUNTRY\t" >> $OUT
31 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
32 echo -n "${LOC##*/} " >> $OUT
33 done
34 echo >> $OUT
35 done
36 sed -i 's| $||g' $OUT
38 # country names
39 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
40 $install/usr/share/zoneinfo/
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs
47 cp -a $install/* $fs
48 # No CD-ROM on embedded devices
49 case "$ARCH" in
50 arm*)
51 rm -f $fs/usr/bin/burn-box
52 rm -f $fs/usr/share/applications/burn-*.desktop ;;
53 esac
54 chmod 0644 $fs/usr/share/locale/*/*/*.mo
55 chown -R root.root $fs
56 }