wok view tazpkg/receipt @ rev 17235

Up: firefox-official (33.0)
author Richard Dunbar <mojo@slitaz.org>
date Fri Oct 17 19:52:40 2014 -0400 (2014-10-17)
parents 6f136968d1ac
children 533c0cab6960
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="5.3.2"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
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 BUILD_DEPENDS="gettext"
18 # Gettext is part of cross-chroot
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 #
25 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
26 # can be do with : make install from the sources directory.
27 #
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cd $src
33 make && make DESTDIR=$DESTDIR install
34 }
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 chown -R root.root $fs
40 # Default icon for mimetype (freedesktop standard compliant file
41 # manager will diplay a tazpkg icon for SliTaz packages).
42 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
43 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
44 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
45 ln -s /usr/share/pixmaps/tazpkg.png application-x-tazpkg.png
46 }
48 post_install()
49 {
50 # Apply a fix to config file /etc/slitaz/slitaz.conf
51 [ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\
52 -i /etc/slitaz/slitaz.conf
53 # Make sure new config is present
54 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
55 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
56 # The geometry of the desktop notification
57 NOTIFY_GEOM="360x80-0+24"
59 EOT
60 fi
61 }