wok view tazpkg/receipt @ rev 17857

Up: tazpkg (5.3.5)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 25 03:18:37 2015 +0200 (2015-03-25)
parents be5709551b21
children ad3485620c14
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="5.3.5"
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 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
43 ln -s /usr/share/pixmaps/tazpkg.png \
44 $fs/usr/share/icons/hicolor/32x32/mimetypes/application-x-tazpkg.png
46 rm -rf $fs/usr/share/mime
47 }
49 post_install()
50 {
51 # Apply a fix to config file /etc/slitaz/slitaz.conf
52 [ -f /etc/slitaz/slitaz.conf ] && \
53 sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
55 # Make sure new config is present
56 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
57 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
58 # The geometry of the desktop notification
59 NOTIFY_GEOM="360x80-0+24"
61 EOT
62 fi
63 }