# HG changeset patch # User Christopher Rogers # Date 1287417058 0 # Node ID 46663ad271e5edc8988fdca37e806c422ceeee03 # Parent 400719117500299dfe144a934b56d40732e18dc7# Parent c1ba7714d0d481916aa0a923360749c08f4a0a80 merge diff -r 400719117500 -r 46663ad271e5 tazpkg/receipt --- a/tazpkg/receipt Mon Oct 18 15:44:53 2010 +0000 +++ b/tazpkg/receipt Mon Oct 18 15:50:58 2010 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="tazpkg" -VERSION="3.4" +VERSION="4.0" CATEGORY="base-system" SHORT_DESC="SliTaz packages manager." MAINTAINER="pankso@slitaz.org" @@ -16,22 +16,20 @@ # Tazpkg is SliTaz packages manager. On an other GNU/Linux install # can be do with : make install from the sources directory. # + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make DESTDIR=$PWD/_pkg install +} + genpkg_rules() { - mkdir -p \ - $fs/etc/slitaz \ - $fs/usr/bin \ - $fs/usr/lib/slitaz \ - $fs/usr/share/doc/$PACKAGE - cp -a $src/tazpkg $fs/usr/bin - cp -a $src/tazpkgbox $fs/usr/bin - cp -a $src/tazpkg.conf $fs/etc/slitaz - cp -a $src/lib/* $fs/usr/lib/slitaz - cp -a $src/applications $fs/usr/share + cp -a $_pkg/usr $fs + cp -a $_pkg/etc $fs cp -a $src/pixmaps $fs/usr/share cp -a $src/mime $fs/usr/share - cp -a $src/doc/*.html $fs/usr/share/doc/$PACKAGE - chmod 755 $fs/usr/bin/$PACKAGE chown -R root.root $fs # Default icon for mimetype (freedesktop standard compliant file # manager will diplay a tazpkg icon for SliTaz packages). @@ -40,10 +38,3 @@ ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png } - -post_install() -{ - # update mime-cache - echo "Updating mime-types database..." - update-mime-database $1/usr/share/mime -}