wok view tazpkg/receipt @ rev 24955

updated nano and nano-doc (4.8 -> 6.2)
author Hans-G?nter Theisgen
date Sat Apr 23 16:34:46 2022 +0100 (2022-04-23)
parents b57d2cbc7c42
children 50a8a74fbda3
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 current_version()
25 {
26 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
27 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
28 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
29 }
31 # Rules to gen a SliTaz package suitable for TazPkg.
32 #
33 # TazPkg is SliTaz packages manager. On an other GNU/Linux install
34 # can be do with `make install` from the sources directory.
35 #
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 sed -i 's|\. receipt|. ./receipt|' */*
41 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
42 }
44 genpkg_rules()
45 {
46 cp -a $install/* $fs
47 chown -R root.root $fs
49 # A tiny bug fix
50 sed 's|= "\$NEWVER|= "${NEWVER:-$VERSION}|;s|\$NEWMD5|${NEWMD5:-$OLDMD5}|' \
51 -i $fs/usr/libexec/tazpkg/info
52 # Default icon for mimetype (freedesktop standard compliant file
53 # manager will diplay a tazpkg icon for SliTaz packages).
54 icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
55 mkdir -p $icons
56 ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
57 }
59 post_install()
60 {
61 # Apply a fix to config file /etc/slitaz/slitaz.conf
62 [ -f $1/etc/slitaz/slitaz.conf ] && \
63 sed -i 's/LOCAL_STATE/LOCALSTATE/' $1/etc/slitaz/slitaz.conf
64 grep -q ^Icon= $1/usr/share/applications/tazpkg-url.desktop ||
65 echo "Icon=tazpkg" >> $1/usr/share/applications/tazpkg-url.desktop
67 # Make sure new config is present
68 if ! grep -q ^NOTIFY_GEOM "$1/etc/slitaz/tazpkg.conf"; then
69 cat >> "$1/etc/slitaz/tazpkg.conf" << "EOT"
70 # The geometry of the desktop notification
71 NOTIFY_GEOM="360x80-0+24"
73 EOT
74 fi
75 :
76 }