wok-current view slitaz-tools-boxes/receipt @ rev 20750
updated bluefish (2.2.0 -> 2.2.10)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 11 17:14:38 2019 +0100 (2019-02-11) |
parents | ab43b9f8e081 |
children | f7a13af08fc7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools-boxes"
4 VERSION="1028"
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 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make && make DESTDIR=$DESTDIR install-boxes
26 # make zone-mini.tab for timezone selector
27 TAB=$WOK/tzdata/install/usr/share/zoneinfo/zone.tab
28 OUT=$install/usr/share/zoneinfo/zone-mini.tab
29 echo -n > $OUT
30 ZONES="$(cat $TAB | sed '/#/ d' | cut -d' ' -f1,3 | sort -u)"
31 for COUNTRY in $(echo "$ZONES" | cut -d' ' -f1 | sort -u); do
32 echo -ne "$COUNTRY\t" >> $OUT
33 for LOC in $(echo "$ZONES" | sed -n "/$COUNTRY/ s|.*\t\(.*\)|\1|p"); do
34 echo -n "${LOC##*/} " >> $OUT
35 done
36 echo >> $OUT
37 done
38 sed -i 's| $||g' $OUT
39 # Remove historical locations for UA
40 sed -i 's| Uzhgorod Zaporozhye||' $OUT
42 # country names
43 cp -a $WOK/tzdata/install/usr/share/zoneinfo/iso3166.tab \
44 $install/usr/share/zoneinfo/
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs
51 cp -a $install/* $fs
52 # No CD-ROM on embedded devices
53 case "$ARCH" in
54 arm*)
55 rm -f $fs/usr/bin/burn-box
56 rm -f $fs/usr/share/applications/burn-*.desktop ;;
57 esac
58 chmod 0644 $fs/usr/share/locale/*/*/*.mo
59 chown -R root.root $fs
60 }