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

updated i7z (0.27.3 -> 0.27.4)
author Hans-G?nter Theisgen
date Fri Mar 11 06:54:52 2022 +0100 (2022-03-11)
parents 7e911016a644
children
rev   line source
pankso@2094 1 # SliTaz package receipt.
pankso@2094 2
pankso@2094 3 PACKAGE="slitaz-tools-boxes"
pascal@24131 4 VERSION="1037"
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
pascal@24069 21 current_version()
pascal@24069 22 {
pascal@24069 23 wget -O - http://hg.slitaz.org/slitaz-tools/ 2>/dev/null | \
pascal@24069 24 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-tools/rev/|;s|<.*||' | \
pascal@24069 25 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
pascal@24069 26 }
pascal@24069 27
pankso@10789 28 # Rules to configure and make the package.
pankso@10789 29 compile_rules()
pankso@10789 30 {
al@14803 31 make && make DESTDIR=$DESTDIR install-boxes
al@16591 32
al@16591 33 # make zone-mini.tab for timezone selector
al@16591 34 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
al@16591 35 OUT=$install/usr/share/zoneinfo/zone-mini.tab
al@16591 36 echo -n > $OUT
al@16594 37 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
al@16591 38 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
al@16591 39 echo -ne "$COUNTRY\t" >> $OUT
al@16591 40 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
al@16591 41 echo -n "${LOC##*/} " >> $OUT
al@16591 42 done
al@16591 43 echo >> $OUT
al@16591 44 done
al@16591 45 sed -i 's| $||g' $OUT
al@16594 46 # Remove historical locations for UA
al@16594 47 sed -i 's| Uzhgorod Zaporozhye||' $OUT
al@16591 48
al@16591 49 # country names
al@16591 50 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
al@16591 51 $install/usr/share/zoneinfo/
pankso@10789 52 }
pankso@10789 53
pankso@2094 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2094 55 genpkg_rules()
pankso@2094 56 {
pankso@10789 57 mkdir -p $fs
pankso@10789 58 cp -a $install/* $fs
al@16591 59 # No CD-ROM on embedded devices
pankso@16263 60 case "$ARCH" in
pankso@16263 61 arm*)
pankso@16263 62 rm -f $fs/usr/bin/burn-box
pankso@16263 63 rm -f $fs/usr/share/applications/burn-*.desktop ;;
pankso@16263 64 esac
pankso@10789 65 chmod 0644 $fs/usr/share/locale/*/*/*.mo
pankso@2094 66 chown -R root.root $fs
pankso@2094 67 }