wok view slitaz-tools-boxes/receipt @ rev 17364

Up: slitaz-tools (5.8.14)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 20 06:13:48 2014 +0200 (2014-11-20)
parents ae271cfed618
children 696f47eb99f4
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="5.8.14"
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.bz2"
12 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
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 $TAB | 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
37 # Remove historical locations for UA
38 sed -i 's| Uzhgorod Zaporozhye||' $OUT
40 # country names
41 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
42 $install/usr/share/zoneinfo/
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs
49 cp -a $install/* $fs
50 # No CD-ROM on embedded devices
51 case "$ARCH" in
52 arm*)
53 rm -f $fs/usr/bin/burn-box
54 rm -f $fs/usr/share/applications/burn-*.desktop ;;
55 esac
56 chmod 0644 $fs/usr/share/locale/*/*/*.mo
57 chown -R root.root $fs
58 }