wok view tazpkg/receipt @ rev 24011

mosh: create /usr/share/terminfo/x/xterm-256color link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 05 17:16:12 2021 +0000 (2021-02-05)
parents 924febe49050
children 7e911016a644
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="944"
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
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 SUGGESTED="tazpanel"
17 BUILD_DEPENDS="gettext tidy-html5 libnotify-dev"
19 # Gettext is part of cross-chroot
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to gen a SliTaz package suitable for TazPkg.
25 #
26 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
27 # can be do with `make install` from the sources directory.
28 #
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|\. receipt|. ./receipt|' */*
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 # A tiny bug fix
43 sed 's|= "\$NEWVER|= "${NEWVER:-$VERSION}|;s|\$NEWMD5|${NEWMD5:-$OLDMD5}|' \
44 -i $fs/usr/libexec/tazpkg/info
45 # Default icon for mimetype (freedesktop standard compliant file
46 # manager will diplay a tazpkg icon for SliTaz packages).
47 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
48 mkdir -p $icons
49 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
50 }
52 post_install()
53 {
54 # Apply a fix to config file /etc/slitaz/slitaz.conf
55 [ -f $1/etc/slitaz/slitaz.conf ] && \
56 sed -i 's/LOCAL_STATE/LOCALSTATE/' $1/etc/slitaz/slitaz.conf
57 grep -q ^Icon= $1/usr/share/applications/tazpkg-url.desktop ||
58 echo "Icon=tazpkg" >> $1/usr/share/applications/tazpkg-url.desktop
60 # Make sure new config is present
61 if ! grep -q ^NOTIFY_GEOM "$1/etc/slitaz/tazpkg.conf"; then
62 cat >> "$1/etc/slitaz/tazpkg.conf" << "EOT"
63 # The geometry of the desktop notification
64 NOTIFY_GEOM="360x80-0+24"
66 EOT
67 fi
68 :
69 }