wok-current view slitaz-tools-boxes/receipt @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (11 months ago)
parents db9d9cb3c164
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="1037"
5 CATEGORY="system-tools"
6 SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 SOURCE="slitaz-tools"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
13 #CONFIG_FILES="/etc/wireless"
14 GENERIC_MENUS="no"
15 HOST_ARCH="i486 arm"
17 DEPENDS="slitaz-tools gettext-base yad xorg-xhost"
18 BUILD_DEPENDS="tzdata"
19 SIBLINGS="slitaz-tools tazdrop"
21 current_version()
22 {
23 wget -O - http://hg.slitaz.org/slitaz-tools/ 2>/dev/null | \
24 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-tools/rev/|;s|<.*||' | \
25 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Thanks Rantanplan
32 # fix typo burn-box and fr comment tazbox-tazapps
33 patch -p1 < $stuff/fix_typo_burn-box.patch
34 patch -p1 < $stuff/fr_comment_tazbox-tazapps.patch
35 # fix list videos for tazbox-video
36 patch -p1 < $stuff/fix_list_tazbox-video.patch
38 make && make DESTDIR=$DESTDIR install-boxes
40 # make zone-mini.tab for timezone selector
41 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
42 OUT=$install/usr/share/zoneinfo/zone-mini.tab
43 echo -n > $OUT
44 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
45 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
46 echo -ne "$COUNTRY\t" >> $OUT
47 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
48 echo -n "${LOC##*/} " >> $OUT
49 done
50 echo >> $OUT
51 done
52 sed -i 's| $||g' $OUT
53 # Remove historical locations for UA
54 sed -i 's| Uzhgorod Zaporozhye||' $OUT
56 # country names
57 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
58 $install/usr/share/zoneinfo/
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs
65 cp -a $install/* $fs
66 # No CD-ROM on embedded devices
67 case "$ARCH" in
68 arm*)
69 rm -f $fs/usr/bin/burn-box
70 rm -f $fs/usr/share/applications/burn-*.desktop ;;
71 esac
72 chmod 0644 $fs/usr/share/locale/*/*/*.mo
73 chown -R root.root $fs
74 }