# HG changeset patch # User Aleksej Bobylev # Date 1511006855 -7200 # Node ID 4d3f87a6c521ce223ac1bf3c6de2625accc8ab82 # Parent 16a417e1e89d3704c804d395456b2a06e3013c7b Up/patch tazpkg diff -r 16a417e1e89d -r 4d3f87a6c521 tazpkg/receipt --- a/tazpkg/receipt Sat Nov 18 13:59:34 2017 +0200 +++ b/tazpkg/receipt Sat Nov 18 14:07:35 2017 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt v2. PACKAGE="tazpkg" -VERSION="951" +VERSION="954" CATEGORY="base-system" SHORT_DESC="SliTaz packages manager" MAINTAINER="pankso@slitaz.org" @@ -15,41 +15,25 @@ BUILD_DEPENDS_arm="" BUILD_DEPENDS="gettext tidy-html5 libnotify-dev" -# Rules to gen a SliTaz package suitable for TazPkg. -# -# TazPkg is SliTaz packages manager. On an other GNU/Linux install -# can be do with `make install` from the sources directory. -# - -# Rules to configure and make the package. -compile_rules() -{ - make && make DESTDIR=$DESTDIR VERSION=$VERSION install -} - -genpkg_rules() -{ - cp -a $install/* $fs - chown -R root.root $fs +compile_rules() { + make && + make DESTDIR=$DESTDIR VERSION=$VERSION install || return 1 # Default icon for mimetype (freedesktop standard compliant file # manager will diplay a tazpkg icon for SliTaz packages). - icons="$fs/usr/share/icons/hicolor/32x32/mimetypes" + icons="$install/usr/share/icons/hicolor/32x32/mimetypes" mkdir -p $icons ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png + + rm $install/usr/share/doc/tazpkg/tazpkg.html + cp $stuff/tazpkg.html $install/usr/share/doc/tazpkg/ + + chown -R root.root $install +} + +genpkg_rules() { + copy @std doc/ hicolor/ *.mo DEPENDS="busybox gettext-base" SUGGESTED="tazpanel" TAGS="slitaz package-manager" } - -post_install() { - # Make sure new config is present - if ! grep -q ^NOTIFY_GEOM "$1/etc/slitaz/tazpkg.conf"; then - cat >> "$1/etc/slitaz/tazpkg.conf" < +# Date 1509739839 14400 +# Node ID ecb60a87e3e840843ad7698cee37380f374819ec +# Parent 40c8ad3478fdb0436487ff71966099a7546c7492 +modules/install: PKG_SUM restores update new build detection + +diff -r 40c8ad3478fd -r ecb60a87e3e8 modules/install +--- a/modules/install Mon Oct 09 17:16:43 2017 +0100 ++++ b/modules/install Fri Nov 03 16:10:39 2017 -0400 +@@ -620,7 +620,8 @@ + + # Remove newlines from some receipts + DEPENDS=$(echo $DEPENDS) +- ++ PKG_SUM="$(fgrep " $PACKAGE-$VERSION$EXTRAVERSION.tazpkg" "$PKGS_DB/installed.$SUM" | cut -d' ' -f1)" ++ + # Calculate "release checksum": md5sum of file containing md5sums of: + # a) all files, b) receipt, and c) description.txt. + rsumf=$(mktemp) +@@ -637,7 +638,7 @@ + sed -i "/^$PACKAGE /d" "$ii" + + cat >> "$ii" < +