wok view tazpkg/receipt @ rev 13900
Add libjreen (1.1.1)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Jan 19 15:31:49 2013 +0000 (2013-01-19) |
parents | 614c08d23ef5 |
children | 0ff1a16dba1e |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="5.1"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
11 TAGS="slitaz package-manager"
12 HOST_ARCH="i486 arm"
14 DEPENDS="busybox gettext-base libtaz"
15 BUILD_DEPENDS="gettext"
17 # Gettext is part of cross-chroot
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 #
24 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
25 # can be do with : make install from the sources directory.
26 #
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
32 make && make DESTDIR=$DESTDIR install
33 }
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 chown -R root.root $fs
39 # Default icon for mimetype (freedesktop standard compliant file
40 # manager will diplay a tazpkg icon for SliTaz packages).
41 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
42 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
43 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
44 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-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 ] && sed 's/LOCAL_STATE/LOCALSTATE/'\
51 -i /etc/slitaz/slitaz.conf
52 # Make sure new config is present
53 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
54 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
55 # The geometry of the desktop notification
56 NOTIFY_GEOM="360x80-0+24"
58 EOT
59 fi
60 }