wok view tazpkg/receipt @ rev 11513

prboom: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 22 23:37:34 2011 +0100 (2011-12-22)
parents fbb1603904fb
children 0d1b3d27c184
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="4.7.2"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="busybox gettext-base libtaz"
9 BUILD_DEPENDS="gettext"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.slitaz.org/"
12 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
13 TAGS="slitaz package-manager"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 #
17 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
18 # can be do with : make install from the sources directory.
19 #
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 make && make DESTDIR=$DESTDIR install
26 }
28 genpkg_rules()
29 {
30 cp -a $install/* $fs
31 chown -R root.root $fs
32 # Default icon for mimetype (freedesktop standard compliant file
33 # manager will diplay a tazpkg icon for SliTaz packages).
34 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
35 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
36 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
37 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
38 }
40 post_install()
41 {
42 # Apply a fix to config file /etc/slitaz/slitaz.conf
43 [ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\
44 -i /etc/slitaz/slitaz.conf
45 # Make sure new config is present
46 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
47 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
48 # The geometry of the desktop notification
49 NOTIFY_GEOM="360x80-0+24"
51 EOT
52 fi
53 }