wok-next annotate tazpkg/receipt @ rev 16264

Add some any arch packages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 05 10:12:34 2014 +0000 (2014-04-05)
parents e5b70d287abc
children e31f3599d1b5
rev   line source
pankso@10 1 # SliTaz package receipt.
pankso@10 2
pankso@10 3 PACKAGE="tazpkg"
pankso@15916 4 VERSION="5.2"
pankso@192 5 CATEGORY="base-system"
pankso@10 6 SHORT_DESC="SliTaz packages manager."
pankso@10 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
slaxemulator@9506 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@10 10 WEB_SITE="http://www.slitaz.org/"
slaxemulator@10929 11 WGET_URL="http://hg.slitaz.org/tazpkg/archive/$VERSION.tar.gz"
jozee@4973 12 TAGS="slitaz package-manager"
pankso@12778 13 HOST_ARCH="i486 arm"
pankso@10 14
pascal@14469 15 DEPENDS="busybox gettext-base"
pankso@12879 16 BUILD_DEPENDS="gettext"
pankso@12879 17
pankso@12879 18 # Gettext is part of cross-chroot
pankso@12879 19 case "$ARCH" in
pankso@12879 20 arm) BUILD_DEPENDS="" ;;
pankso@12879 21 esac
pankso@12879 22
pankso@10 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10 24 #
pankso@10 25 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
pankso@10 26 # can be do with : make install from the sources directory.
pankso@10 27 #
pankso@6776 28
pankso@6776 29 # Rules to configure and make the package.
pankso@6776 30 compile_rules()
pankso@6776 31 {
pankso@6776 32 cd $src
slaxemulator@10929 33 make && make DESTDIR=$DESTDIR install
pankso@6776 34 }
pankso@6776 35
pankso@10 36 genpkg_rules()
pankso@10 37 {
pankso@10792 38 cp -a $install/* $fs
pankso@722 39 chown -R root.root $fs
pankso@3952 40 # Default icon for mimetype (freedesktop standard compliant file
pankso@3952 41 # manager will diplay a tazpkg icon for SliTaz packages).
pankso@3952 42 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 43 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 44 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
pankso@3952 45 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
pankso@10 46 }
gokhlayeh@8157 47
gokhlayeh@8157 48 post_install()
gokhlayeh@8157 49 {
pankso@10792 50 # Apply a fix to config file /etc/slitaz/slitaz.conf
gokhlayeh@8157 51 [ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\
pankso@9492 52 -i /etc/slitaz/slitaz.conf
pankso@10792 53 # Make sure new config is present
pankso@9492 54 if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
pankso@9492 55 cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"
pankso@9492 56 # The geometry of the desktop notification
pankso@9492 57 NOTIFY_GEOM="360x80-0+24"
pankso@9492 58
pankso@9492 59 EOT
pankso@9492 60 fi
gokhlayeh@9379 61 }