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

smtube: try to fix build
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed May 20 00:18:47 2015 +0200 (2015-05-20)
parents 812b8ff93410
children 2cedb70f8399
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="941"
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 }