wok-undigest rev 1149

Up: cookutils, cookutils-daemon (733); add tazpkg (803).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 10 13:56:03 2015 +0300 (2015-05-10)
parents ee4618dc13d2
children a0f100f75fb2
files cookutils-daemon/receipt cookutils/receipt tazpkg/receipt
line diff
     1.1 --- a/cookutils-daemon/receipt	Sun May 10 11:49:38 2015 +0300
     1.2 +++ b/cookutils-daemon/receipt	Sun May 10 13:56:03 2015 +0300
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="cookutils-daemon"
     1.7 -VERSION="731"
     1.8 +VERSION="733"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="SliTaz Cooker daemon script for build host."
    1.11  MAINTAINER="pankso@slitaz.org"
     2.1 --- a/cookutils/receipt	Sun May 10 11:49:38 2015 +0300
     2.2 +++ b/cookutils/receipt	Sun May 10 13:56:03 2015 +0300
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="cookutils"
     2.7 -VERSION="731"
     2.8 +VERSION="733"
     2.9  CATEGORY="base-system"
    2.10  SHORT_DESC="SliTaz packages builder new generation."
    2.11  MAINTAINER="pankso@slitaz.org"
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/tazpkg/receipt	Sun May 10 13:56:03 2015 +0300
     3.3 @@ -0,0 +1,62 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="tazpkg"
     3.7 +VERSION="803"
     3.8 +CATEGORY="base-system"
     3.9 +SHORT_DESC="SliTaz packages manager."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +LICENSE="GPL3"
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.13 +WEB_SITE="http://www.slitaz.org/"
    3.14 +WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
    3.15 +TAGS="slitaz package-manager"
    3.16 +HOST_ARCH="i486 arm"
    3.17 +
    3.18 +DEPENDS="busybox gettext-base"
    3.19 +SUGGESTED="tazpanel"
    3.20 +BUILD_DEPENDS="gettext"
    3.21 +
    3.22 +# Gettext is part of cross-chroot
    3.23 +case "$ARCH" in
    3.24 +	arm)  BUILD_DEPENDS="" ;;
    3.25 +esac
    3.26 +
    3.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.28 +#
    3.29 +# Tazpkg is SliTaz packages manager. On an other GNU/Linux install
    3.30 +# can be do with : make install from the sources directory.
    3.31 +#
    3.32 +
    3.33 +# Rules to configure and make the package.
    3.34 +compile_rules()
    3.35 +{
    3.36 +	make && make DESTDIR=$DESTDIR VERSION=$VERSION install
    3.37 +}
    3.38 +
    3.39 +genpkg_rules()
    3.40 +{
    3.41 +	cp -a $install/* $fs
    3.42 +	chown -R root.root $fs
    3.43 +
    3.44 +	# Default icon for mimetype (freedesktop standard compliant file
    3.45 +	# manager will diplay a tazpkg icon for SliTaz packages).
    3.46 +	icons="$fs/usr/share/icons/hicolor/32x32/mimetypes"
    3.47 +	mkdir -p $icons
    3.48 +	ln -s ../apps/tazpkg.png $icons/application-x-tazpkg.png
    3.49 +}
    3.50 +
    3.51 +post_install()
    3.52 +{
    3.53 +	# Apply a fix to config file /etc/slitaz/slitaz.conf
    3.54 +	[ -f /etc/slitaz/slitaz.conf ] && \
    3.55 +		sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
    3.56 +
    3.57 +	# Make sure new config is present
    3.58 +	if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
    3.59 +		cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
    3.60 +# The geometry of the desktop notification
    3.61 +NOTIFY_GEOM="360x80-0+24"
    3.62 +
    3.63 +EOT
    3.64 +	fi
    3.65 +}