wok-6.x annotate slitaz-tools-boxes/receipt @ rev 18603

slitaz-tools-boxes: config file?
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 16 03:00:15 2015 +0200 (2015-11-16)
parents 32cd19a15111
children ef5ec169fa49
rev   line source
pankso@2094 1 # SliTaz package receipt.
pankso@2094 2
pankso@2094 3 PACKAGE="slitaz-tools-boxes"
al@18583 4 VERSION="958"
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"
psychomaniak@17350 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
psychomaniak@17350 12 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
al@18603 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"
pascal@17718 18 BUILD_DEPENDS="tzdata"
al@14803 19
pankso@10789 20 # Rules to configure and make the package.
pankso@10789 21 compile_rules()
pankso@10789 22 {
al@14803 23 make && make DESTDIR=$DESTDIR install-boxes
al@16591 24
al@16591 25 # make zone-mini.tab for timezone selector
al@16591 26 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
al@16591 27 OUT=$install/usr/share/zoneinfo/zone-mini.tab
al@16591 28 echo -n > $OUT
al@16594 29 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
al@16591 30 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
al@16591 31 echo -ne "$COUNTRY\t" >> $OUT
al@16591 32 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
al@16591 33 echo -n "${LOC##*/} " >> $OUT
al@16591 34 done
al@16591 35 echo >> $OUT
al@16591 36 done
al@16591 37 sed -i 's| $||g' $OUT
al@16594 38 # Remove historical locations for UA
al@16594 39 sed -i 's| Uzhgorod Zaporozhye||' $OUT
al@16591 40
al@16591 41 # country names
al@16591 42 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
al@16591 43 $install/usr/share/zoneinfo/
pankso@10789 44 }
pankso@10789 45
pankso@2094 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2094 47 genpkg_rules()
pankso@2094 48 {
pankso@10789 49 mkdir -p $fs
pankso@10789 50 cp -a $install/* $fs
al@16591 51 # No CD-ROM on embedded devices
pankso@16263 52 case "$ARCH" in
pankso@16263 53 arm*)
pankso@16263 54 rm -f $fs/usr/bin/burn-box
pankso@16263 55 rm -f $fs/usr/share/applications/burn-*.desktop ;;
pankso@16263 56 esac
pankso@10789 57 chmod 0644 $fs/usr/share/locale/*/*/*.mo
pankso@2094 58 chown -R root.root $fs
pankso@2094 59 }