wok-6.x view tazpkg/receipt @ rev 18570

Add firefox-official in de, fr, pt-BR, ru languages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 10 20:06:48 2015 +0200 (2015-11-10)
parents da58b3f88f7b
children b1e001285378
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="839"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
12 TAGS="slitaz package-manager"
13 HOST_ARCH="i486 arm"
15 DEPENDS="busybox gettext-base"
16 SUGGESTED="tazpanel"
17 BUILD_DEPENDS="gettext"
19 # Gettext is part of cross-chroot
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to gen a SliTaz package suitable for TazPkg.
25 #
26 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
27 # can be do with `make install` from the sources directory.
28 #
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
34 }
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 chown -R root.root $fs
41 # Default icon for mimetype (freedesktop standard compliant file
42 # manager will diplay a tazpkg icon for SliTaz packages).
43 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
44 mkdir -p $icons
45 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
47 # Temporary patch for tazpkg-839
48 sed -i 's|echo "\(tazpkg .*\)"$|\1|' $install/usr/bin/tazpkg
49 }
51 post_install()
52 {
53 # Apply a fix to config file /etc/slitaz/slitaz.conf
54 [ -f /etc/slitaz/slitaz.conf ] && \
55 sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
57 # Make sure new config is present
58 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
59 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
60 # The geometry of the desktop notification
61 NOTIFY_GEOM="360x80-0+24"
63 EOT
64 fi
66 # Temporary patch for tazpkg-839
67 touch $install/var/lib/tazpkg/blocked-packages.list
68 }