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

yad-gtk2: provide yad (unconditionally).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 06 15:51:50 2016 +0200 (2016-12-06)
parents e97a0707db43
children d5add2d69322
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="1006"
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"
15 SIBLINGS="slitaz-tools tazdrop"
17 GENERIC_MENUS="no"
18 DEPENDS="slitaz-tools gettext-base yad"
19 BUILD_DEPENDS="tzdata"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make && make DESTDIR=$DESTDIR install-boxes
26 # make zone-mini.tab for timezone selector
27 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
28 OUT=$install/usr/share/zoneinfo/zone-mini.tab
29 echo -n > $OUT
30 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
31 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
32 echo -ne "$COUNTRY\t" >> $OUT
33 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
34 echo -n "${LOC##*/} " >> $OUT
35 done
36 echo >> $OUT
37 done
38 sed -i 's| $||g' $OUT
39 # Remove historical locations for UA
40 sed -i 's| Uzhgorod Zaporozhye||' $OUT
42 # country names
43 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
44 $install/usr/share/zoneinfo/
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs
51 cp -a $install/* $fs
52 # No CD-ROM on embedded devices
53 case "$ARCH" in
54 arm*)
55 rm -f $fs/usr/bin/burn-box
56 rm -f $fs/usr/share/applications/burn-*.desktop ;;
57 esac
58 chmod 0644 $fs/usr/share/locale/*/*/*.mo
59 chown -R root.root $fs
60 }