wok-6.x annotate tazpkg/receipt @ rev 4779

Add: libbfd.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 14 22:16:51 2010 +0100 (2010-01-14)
parents ad6126f9920a
children 4a0243ce1877
rev   line source
pankso@10 1 # SliTaz package receipt.
pankso@10 2
pankso@10 3 PACKAGE="tazpkg"
pankso@4739 4 VERSION="3.2"
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@4739 20 mkdir -p \
pankso@4739 21 $fs/etc/slitaz \
pankso@4739 22 $fs/usr/bin \
pankso@4739 23 $fs/usr/lib/slitaz \
pankso@4739 24 $fs/usr/share/doc/$PACKAGE
pankso@759 25 cp -a $src/tazpkg $fs/usr/bin
pankso@759 26 cp -a $src/tazpkgbox $fs/usr/bin
pankso@4739 27 cp -a $src/tazpkg.conf $fs/etc/slitaz
pankso@763 28 cp -a $src/lib/* $fs/usr/lib/slitaz
pankso@759 29 cp -a $src/applications $fs/usr/share
pankso@759 30 cp -a $src/pixmaps $fs/usr/share
pankso@3952 31 cp -a $src/mime $fs/usr/share
pankso@722 32 cp -a $src/doc/$PACKAGE.html $fs/usr/share/doc/$PACKAGE
pankso@10 33 chmod 755 $fs/usr/bin/$PACKAGE
pankso@722 34 chown -R root.root $fs
pankso@3952 35 # Default icon for mimetype (freedesktop standard compliant file
pankso@3952 36 # manager will diplay a tazpkg icon for SliTaz packages).
pankso@3952 37 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 38 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
pankso@3952 39 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
pankso@3952 40 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
pankso@10 41 }
pankso@3952 42
pankso@3952 43 post_install()
pankso@3952 44 {
pankso@3952 45 # update mime-cache
pankso@3952 46 echo "Updating mime-types database..."
pankso@3952 47 update-mime-database $1/usr/share/mime
pankso@3952 48 }