# HG changeset patch # User Aleksej Bobylev # Date 1431255363 -10800 # Node ID 1e811222d0b260266ce6555b40424b8a7d9129e1 # Parent ee4618dc13d24297d2275e7f62a7475c8f571ac0 Up: cookutils, cookutils-daemon (733); add tazpkg (803). diff -r ee4618dc13d2 -r 1e811222d0b2 cookutils-daemon/receipt --- a/cookutils-daemon/receipt Sun May 10 11:49:38 2015 +0300 +++ b/cookutils-daemon/receipt Sun May 10 13:56:03 2015 +0300 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="cookutils-daemon" -VERSION="731" +VERSION="733" CATEGORY="system-tools" SHORT_DESC="SliTaz Cooker daemon script for build host." MAINTAINER="pankso@slitaz.org" diff -r ee4618dc13d2 -r 1e811222d0b2 cookutils/receipt --- a/cookutils/receipt Sun May 10 11:49:38 2015 +0300 +++ b/cookutils/receipt Sun May 10 13:56:03 2015 +0300 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="cookutils" -VERSION="731" +VERSION="733" CATEGORY="base-system" SHORT_DESC="SliTaz packages builder new generation." MAINTAINER="pankso@slitaz.org" diff -r ee4618dc13d2 -r 1e811222d0b2 tazpkg/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tazpkg/receipt Sun May 10 13:56:03 2015 +0300 @@ -0,0 +1,62 @@ +# SliTaz package receipt. + +PACKAGE="tazpkg" +VERSION="803" +CATEGORY="base-system" +SHORT_DESC="SliTaz packages manager." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL3" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.slitaz.org/" +WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz" +TAGS="slitaz package-manager" +HOST_ARCH="i486 arm" + +DEPENDS="busybox gettext-base" +SUGGESTED="tazpanel" +BUILD_DEPENDS="gettext" + +# Gettext is part of cross-chroot +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac + +# 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 + + # 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" + mkdir -p $icons + ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png +} + +post_install() +{ + # Apply a fix to config file /etc/slitaz/slitaz.conf + [ -f /etc/slitaz/slitaz.conf ] && \ + sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf + + # Make sure new config is present + if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then + cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT" +# The geometry of the desktop notification +NOTIFY_GEOM="360x80-0+24" + +EOT + fi +}