wok-current annotate slitaz-tools-boxes/receipt @ rev 20308

Up slitaz-tools (1028)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 09 12:44:14 2018 +0200 (2018-05-09)
parents ab43b9f8e081
children f7a13af08fc7
rev   line source
pankso@2094 1 # SliTaz package receipt.
pankso@2094 2
pankso@2094 3 PACKAGE="slitaz-tools-boxes"
pascal@20308 4 VERSION="1028"
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"
al@19617 14 GENERIC_MENUS="no"
pankso@16263 15 HOST_ARCH="i486 arm"
pankso@2094 16
pascal@19836 17 DEPENDS="slitaz-tools gettext-base yad xorg-xhost"
pascal@17718 18 BUILD_DEPENDS="tzdata"
al@19617 19 SIBLINGS="slitaz-tools tazdrop"
al@14803 20
pankso@10789 21 # Rules to configure and make the package.
pankso@10789 22 compile_rules()
pankso@10789 23 {
al@14803 24 make && make DESTDIR=$DESTDIR install-boxes
al@16591 25
al@16591 26 # make zone-mini.tab for timezone selector
al@16591 27 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
al@16591 28 OUT=$install/usr/share/zoneinfo/zone-mini.tab
al@16591 29 echo -n > $OUT
al@16594 30 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
al@16591 31 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
al@16591 32 echo -ne "$COUNTRY\t" >> $OUT
al@16591 33 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
al@16591 34 echo -n "${LOC##*/} " >> $OUT
al@16591 35 done
al@16591 36 echo >> $OUT
al@16591 37 done
al@16591 38 sed -i 's| $||g' $OUT
al@16594 39 # Remove historical locations for UA
al@16594 40 sed -i 's| Uzhgorod Zaporozhye||' $OUT
al@16591 41
al@16591 42 # country names
al@16591 43 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
al@16591 44 $install/usr/share/zoneinfo/
pankso@10789 45 }
pankso@10789 46
pankso@2094 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2094 48 genpkg_rules()
pankso@2094 49 {
pankso@10789 50 mkdir -p $fs
pankso@10789 51 cp -a $install/* $fs
al@16591 52 # No CD-ROM on embedded devices
pankso@16263 53 case "$ARCH" in
pankso@16263 54 arm*)
pankso@16263 55 rm -f $fs/usr/bin/burn-box
pankso@16263 56 rm -f $fs/usr/share/applications/burn-*.desktop ;;
pankso@16263 57 esac
pankso@10789 58 chmod 0644 $fs/usr/share/locale/*/*/*.mo
pankso@2094 59 chown -R root.root $fs
pankso@2094 60 }