wok rev 6778

merge
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 18 15:50:58 2010 +0000 (2010-10-18)
parents 400719117500 c1ba7714d0d4
children 9d7bc1a5f111
files
line diff
     1.1 --- a/tazpkg/receipt	Mon Oct 18 15:44:53 2010 +0000
     1.2 +++ b/tazpkg/receipt	Mon Oct 18 15:50:58 2010 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tazpkg"
     1.7 -VERSION="3.4"
     1.8 +VERSION="4.0"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="SliTaz packages manager."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -16,22 +16,20 @@
    1.13  # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
    1.14  # can be do with : make install from the sources directory.
    1.15  #
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	make DESTDIR=$PWD/_pkg install
    1.22 +}
    1.23 +
    1.24  genpkg_rules()
    1.25  {
    1.26 -	mkdir -p \
    1.27 -		$fs/etc/slitaz \
    1.28 -		$fs/usr/bin \
    1.29 -		$fs/usr/lib/slitaz \
    1.30 -		$fs/usr/share/doc/$PACKAGE
    1.31 -	cp -a $src/tazpkg $fs/usr/bin
    1.32 -	cp -a $src/tazpkgbox $fs/usr/bin
    1.33 -	cp -a $src/tazpkg.conf $fs/etc/slitaz
    1.34 -	cp -a $src/lib/* $fs/usr/lib/slitaz
    1.35 -	cp -a $src/applications $fs/usr/share
    1.36 +	cp -a $_pkg/usr $fs
    1.37 +	cp -a $_pkg/etc $fs
    1.38  	cp -a $src/pixmaps $fs/usr/share
    1.39  	cp -a $src/mime $fs/usr/share
    1.40 -	cp -a $src/doc/*.html $fs/usr/share/doc/$PACKAGE
    1.41 -	chmod 755 $fs/usr/bin/$PACKAGE
    1.42  	chown -R root.root $fs
    1.43  	# Default icon for mimetype (freedesktop standard compliant file
    1.44  	# manager will diplay a tazpkg icon for SliTaz packages).
    1.45 @@ -40,10 +38,3 @@
    1.46  	ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
    1.47  	ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
    1.48  }
    1.49 -
    1.50 -post_install()
    1.51 -{
    1.52 -	# update mime-cache
    1.53 -	echo "Updating mime-types database..."
    1.54 -	update-mime-database $1/usr/share/mime
    1.55 -}