wok-next view tazpkg/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | e5a5af728c96 |
children | ec4ebc01cb25 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tazpkg"
4 VERSION="950"
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.bz2"
15 BUILD_DEPENDS_arm=""
16 BUILD_DEPENDS="gettext tidy-html5 libnotify-dev"
18 # Rules to gen a SliTaz package suitable for TazPkg.
19 #
20 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
21 # can be do with `make install` from the sources directory.
22 #
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
28 }
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 chown -R root.root $fs
35 # Default icon for mimetype (freedesktop standard compliant file
36 # manager will diplay a tazpkg icon for SliTaz packages).
37 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
38 mkdir -p $icons
39 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
40 DEPENDS="busybox gettext-base"
41 SUGGESTED="tazpanel"
42 TAGS="slitaz package-manager"
43 }
45 post_install() {
46 # Make sure new config is present
47 if ! grep -q ^NOTIFY_GEOM "$1/etc/slitaz/tazpkg.conf"; then
48 cat >> "$1/etc/slitaz/tazpkg.conf" <<EOT
49 # The geometry of the desktop notification
50 NOTIFY_GEOM="360x80-0+24"
52 EOT
53 fi
54 :
55 }