wok-next view slitaz-tools-boxes/receipt @ rev 17987

slitaz-base-files: up (267), fix HTTP POST form bug.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 22 11:58:12 2015 +0300 (2015-04-22)
parents 65e98ac720cc
children a234b5cdd546
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="939"
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"
18 BUILD_DEPENDS="tzdata"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 make && make DESTDIR=$DESTDIR install-boxes
25 # make zone-mini.tab for timezone selector
26 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
27 OUT=$install/usr/share/zoneinfo/zone-mini.tab
28 echo -n > $OUT
29 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
30 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
31 echo -ne "$COUNTRY\t" >> $OUT
32 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
33 echo -n "${LOC##*/} " >> $OUT
34 done
35 echo >> $OUT
36 done
37 sed -i 's| $||g' $OUT
38 # Remove historical locations for UA
39 sed -i 's| Uzhgorod Zaporozhye||' $OUT
41 # country names
42 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
43 $install/usr/share/zoneinfo/
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs
50 cp -a $install/* $fs
51 # No CD-ROM on embedded devices
52 case "$ARCH" in
53 arm*)
54 rm -f $fs/usr/bin/burn-box
55 rm -f $fs/usr/share/applications/burn-*.desktop ;;
56 esac
57 chmod 0644 $fs/usr/share/locale/*/*/*.mo
58 chown -R root.root $fs
59 }