wok annotate tazpkg/receipt @ rev 5307
get-google-chrome: Fixed google-chrome-unstable DEPENDS
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Wed Apr 21 00:04:15 2010 +0000 (2010-04-21) |
parents | 33e185417eec |
children | c1ba7714d0d4 |
rev | line source |
---|---|
pankso@10 | 1 # SliTaz package receipt. |
pankso@10 | 2 |
pankso@10 | 3 PACKAGE="tazpkg" |
pankso@5184 | 4 VERSION="3.4" |
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" |
jozee@4973 | 12 TAGS="slitaz package-manager" |
pankso@10 | 13 |
pankso@10 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10 | 15 # |
pankso@10 | 16 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install |
pankso@10 | 17 # can be do with : make install from the sources directory. |
pankso@10 | 18 # |
pankso@10 | 19 genpkg_rules() |
pankso@10 | 20 { |
pankso@4739 | 21 mkdir -p \ |
pankso@4739 | 22 $fs/etc/slitaz \ |
pankso@4739 | 23 $fs/usr/bin \ |
pankso@4739 | 24 $fs/usr/lib/slitaz \ |
pankso@4739 | 25 $fs/usr/share/doc/$PACKAGE |
pankso@759 | 26 cp -a $src/tazpkg $fs/usr/bin |
pankso@759 | 27 cp -a $src/tazpkgbox $fs/usr/bin |
pankso@4739 | 28 cp -a $src/tazpkg.conf $fs/etc/slitaz |
pankso@763 | 29 cp -a $src/lib/* $fs/usr/lib/slitaz |
pankso@759 | 30 cp -a $src/applications $fs/usr/share |
pankso@759 | 31 cp -a $src/pixmaps $fs/usr/share |
pankso@3952 | 32 cp -a $src/mime $fs/usr/share |
pankso@5118 | 33 cp -a $src/doc/*.html $fs/usr/share/doc/$PACKAGE |
pankso@10 | 34 chmod 755 $fs/usr/bin/$PACKAGE |
pankso@722 | 35 chown -R root.root $fs |
pankso@3952 | 36 # Default icon for mimetype (freedesktop standard compliant file |
pankso@3952 | 37 # manager will diplay a tazpkg icon for SliTaz packages). |
pankso@3952 | 38 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes |
pankso@3952 | 39 cd $fs/usr/share/icons/hicolor/32x32/mimetypes |
pankso@3952 | 40 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png |
pankso@3952 | 41 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png |
pankso@10 | 42 } |
pankso@3952 | 43 |
pankso@3952 | 44 post_install() |
pankso@3952 | 45 { |
pankso@3952 | 46 # update mime-cache |
pankso@3952 | 47 echo "Updating mime-types database..." |
pankso@3952 | 48 update-mime-database $1/usr/share/mime |
pankso@3952 | 49 } |