wok-6.x rev 1839

transmission: clean-up receipt
author Christophe Lincoln <pankso@slitaz.org>
date Thu Dec 11 15:13:23 2008 +0100 (2008-12-11)
parents e064f1c86673
children f4d16010477f
files transmission/receipt
line diff
     1.1 --- a/transmission/receipt	Thu Dec 11 14:45:41 2008 +0100
     1.2 +++ b/transmission/receipt	Thu Dec 11 15:13:23 2008 +0100
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  DEPENDS="gtk+ openssl curl libgio"
     1.6  BUILD_DEPENDS="gtk+-dev openssl-dev curl-dev"
     1.7 +SUGGESTED="transmission-web"
     1.8  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.9  WEB_SITE="http://www.transmissionbt.com/"
    1.10  WGET_URL="http://download.m0k.org/transmission/files/$TARBALL"
    1.11 @@ -14,28 +15,19 @@
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 -	# Upstream did a funny tarball...
    1.16 -	mkdir -p $PACKAGE-$VERSION
    1.17 -	tar xzf $SOURCES_REPOSITORY/$TARBALL -C $PACKAGE-$VERSION
    1.18 -
    1.19 -	# For 0.92 (need openssl lib).
    1.20 -	#bzip2 -d -c "$SOURCES_REPOSITORY/$TARBALL" | tar -xf -
    1.21 -
    1.22  	cd $src
    1.23  	./configure \
    1.24  		--prefix=/usr \
    1.25  		$CONFIGURE_ARGS
    1.26  	make
    1.27 +	make DESTDIR=$PWD/_pkg install
    1.28  }
    1.29  
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES
    1.34 -	cp -a $src/gtk/transmission $fs/usr/bin
    1.35 -	# French locale.
    1.36 -	cp -a $src/po/fr.gmo \
    1.37 -		$fs/usr/share/locale/fr/LC_MESSAGES/transmission.mo
    1.38 +	mkdir -p $fs/usr/bin
    1.39 +	cp -a $_pkg/usr/bin/$PACKAGE $fs/usr/bin
    1.40  }
    1.41  
    1.42  # Remove old packages name
    1.43 @@ -43,13 +35,3 @@
    1.44  {
    1.45  	rm -f $1/usr/bin/transmission-gtk
    1.46  }
    1.47 -
    1.48 -# Fancy tarball...
    1.49 -clean_wok()
    1.50 -{
    1.51 -	mv stuff /tmp/tmp-stuff
    1.52 -	mv receipt /tmp/tmp-receipt
    1.53 -	rm -rf *
    1.54 -	mv /tmp/tmp-stuff stuff
    1.55 -	mv /tmp/tmp-receipt receipt
    1.56 -}