wok view tazpkg/receipt @ rev 17938

Up to latest: tazinst-gui, tazinst, tazpanel, tazpkg, tazlito
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 15 09:36:43 2015 +0200 (2015-04-15)
parents ab7a1aef5636
children a0145b1e3f4b
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="785"
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 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
33 }
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 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 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
43 mkdir -p $icons
44 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
45 }
47 post_install()
48 {
49 # Apply a fix to config file /etc/slitaz/slitaz.conf
50 [ -f /etc/slitaz/slitaz.conf ] && \
51 sed -i 's/LOCAL_STATE/LOCALSTATE/' /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 }