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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 6befec62b46c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="1028"
5 CATEGORY="system-tools"
6 SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 REPOLOGY="-"
12 TARBALL="slitaz-tools-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
15 BUILD_DEPENDS="tzdata gettext-dev"
17 SIBLINGS="slitaz-tools tazdrop"
18 COOKOPTS="!menus"
20 compile_rules() {
21 make &&
22 make DESTDIR=$install 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 genpkg_rules() {
46 mkdir -p $fs
47 cp -a $install/* $fs
48 chmod 0644 $fs/usr/share/locale/*/*/*.mo
49 chown -R root.root $fs
50 DEPENDS="slitaz-tools gettext-base yad"
51 #CONFIG_FILES="/etc/wireless"
52 }