wok-next view tazpkg/receipt @ rev 19588

Update all the SliTaz projects (hosted on hg.slitaz.org).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 11:18:06 2017 +0200 (2017-01-21)
parents 119e586fb823
children 18c4d15a72df
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="933"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 TAGS="slitaz package-manager"
11 HOST_ARCH="i486 arm"
12 SUGGESTED="tazpanel"
14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
15 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.bz2"
17 DEPENDS="busybox gettext-base"
18 BUILD_DEPENDS="gettext tidy-html5 libnotify-dev"
20 # Gettext is part of cross-chroot
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="" ;;
23 esac
25 # Rules to gen a SliTaz package suitable for TazPkg.
26 #
27 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
28 # can be do with `make install` from the sources directory.
29 #
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
35 }
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 chown -R root.root $fs
42 # Default icon for mimetype (freedesktop standard compliant file
43 # manager will diplay a tazpkg icon for SliTaz packages).
44 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
45 mkdir -p $icons
46 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
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 :
64 }