wok-stable annotate tazpkg/receipt @ rev 4379

Add intel2gas
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 14 10:24:18 2009 +0200 (2009-10-14)
parents f363091678b1
children 9849eb128cfc
rev   line source
pankso@10 1 # SliTaz package receipt.
pankso@10 2
pankso@10 3 PACKAGE="tazpkg"
pankso@3952 4 VERSION="3.1"
pankso@192 5 CATEGORY="base-system"
pankso@10 6 SHORT_DESC="SliTaz packages manager."
pankso@10 7 MAINTAINER="pankso@slitaz.org"
pankso@722 8 DEPENDS="busybox"
pankso@10 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@10 10 WEB_SITE="http://www.slitaz.org/"
pankso@1071 11 WGET_URL="http://mirror.slitaz.org/sources/tazpkg/$TARBALL"
pankso@10 12
pankso@10 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10 14 #
pankso@10 15 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
pankso@10 16 # can be do with : make install from the sources directory.
pankso@10 17 #
pankso@10 18 genpkg_rules()
pankso@10 19 {
pankso@763 20 mkdir -p $fs/usr/bin $fs/usr/lib/slitaz $fs/usr/share/doc/$PACKAGE
pankso@759 21 cp -a $src/tazpkg $fs/usr/bin
pankso@759 22 cp -a $src/tazpkgbox $fs/usr/bin
pankso@763 23 cp -a $src/lib/* $fs/usr/lib/slitaz
pankso@759 24 cp -a $src/applications $fs/usr/share
pankso@759 25 cp -a $src/pixmaps $fs/usr/share
pankso@3952 26 cp -a $src/mime $fs/usr/share
pankso@722 27 cp -a $src/doc/$PACKAGE.html $fs/usr/share/doc/$PACKAGE
pankso@10 28 chmod 755 $fs/usr/bin/$PACKAGE
pankso@722 29 chown -R root.root $fs
pankso@3952 30 # Default icon for mimetype (freedesktop standard compliant file
pankso@3952 31 # manager will diplay a tazpkg icon for SliTaz packages).
pankso@3952 32 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 33 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 34 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
pankso@3952 35 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
pankso@10 36 }
pankso@3952 37
pankso@3952 38 post_install()
pankso@3952 39 {
pankso@3952 40 # update mime-cache
pankso@3952 41 echo "Updating mime-types database..."
pankso@3952 42 update-mime-database $1/usr/share/mime
pankso@3952 43 }