wok-6.x annotate slitaz-tools-boxes/receipt @ rev 17337
Up slitaz-tools slitaz-tools-boxes (5.8.11)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Nov 05 18:12:18 2014 +0100 (2014-11-05) |
parents | d98b832eaafa |
children | e39b6eddf012 |
rev | line source |
---|---|
pankso@2094 | 1 # SliTaz package receipt. |
pankso@2094 | 2 |
pankso@2094 | 3 PACKAGE="slitaz-tools-boxes" |
psychomaniak@17337 | 4 VERSION="5.8.11" |
pankso@2094 | 5 CATEGORY="system-tools" |
pankso@16460 | 6 SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools." |
pankso@2094 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
al@14803 | 9 WEB_SITE="http://www.slitaz.org/" |
slaxemulator@10874 | 10 SOURCE="slitaz-tools" |
slaxemulator@10874 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@14804 | 12 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.gz" |
pankso@2292 | 13 CONFIG_FILES="/etc/wireless" |
pankso@16263 | 14 HOST_ARCH="i486 arm" |
pankso@2094 | 15 |
pankso@16263 | 16 GENERIC_MENUS="no" |
pankso@16458 | 17 DEPENDS="slitaz-tools gettext-base yad" |
al@14803 | 18 |
pankso@10789 | 19 # Rules to configure and make the package. |
pankso@10789 | 20 compile_rules() |
pankso@10789 | 21 { |
al@14803 | 22 make && make DESTDIR=$DESTDIR install-boxes |
al@16591 | 23 |
al@16591 | 24 # make zone-mini.tab for timezone selector |
al@16591 | 25 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab |
al@16591 | 26 OUT=$install/usr/share/zoneinfo/zone-mini.tab |
al@16591 | 27 echo -n > $OUT |
al@16594 | 28 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)" |
al@16591 | 29 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do |
al@16591 | 30 echo -ne "$COUNTRY\t" >> $OUT |
al@16591 | 31 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do |
al@16591 | 32 echo -n "${LOC##*/} " >> $OUT |
al@16591 | 33 done |
al@16591 | 34 echo >> $OUT |
al@16591 | 35 done |
al@16591 | 36 sed -i 's| $||g' $OUT |
al@16594 | 37 # Remove historical locations for UA |
al@16594 | 38 sed -i 's| Uzhgorod Zaporozhye||' $OUT |
al@16591 | 39 |
al@16591 | 40 # country names |
al@16591 | 41 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \ |
al@16591 | 42 $install/usr/share/zoneinfo/ |
pankso@10789 | 43 } |
pankso@10789 | 44 |
pankso@2094 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2094 | 46 genpkg_rules() |
pankso@2094 | 47 { |
pankso@10789 | 48 mkdir -p $fs |
pankso@10789 | 49 cp -a $install/* $fs |
al@16591 | 50 # No CD-ROM on embedded devices |
pankso@16263 | 51 case "$ARCH" in |
pankso@16263 | 52 arm*) |
pankso@16263 | 53 rm -f $fs/usr/bin/burn-box |
pankso@16263 | 54 rm -f $fs/usr/share/applications/burn-*.desktop ;; |
pankso@16263 | 55 esac |
pankso@10789 | 56 chmod 0644 $fs/usr/share/locale/*/*/*.mo |
pankso@2094 | 57 chown -R root.root $fs |
pankso@2094 | 58 } |