wok annotate transmission/receipt @ rev 1049

Add homebank (Account manager) - Office suite is complet!
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jul 12 21:48:23 2008 +0200 (2008-07-12)
parents c0a368d69d1e
children 10710b8535bc
rev   line source
pankso@41 1 # SliTaz package receipt.
pankso@41 2
pankso@41 3 PACKAGE="transmission"
pankso@774 4 VERSION="1.20"
pankso@203 5 CATEGORY="network"
pankso@41 6 SHORT_DESC="Light and easy to use BitTorrent client."
pankso@41 7 MAINTAINER="pankso@slitaz.org"
pankso@774 8 DEPENDS="gtk+ openssl curl"
pankso@774 9 BUILD_DEPENDS="gtk+-dev openssl-dev curl-dev"
erjo@539 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@41 11 WEB_SITE="http://transmission.m0k.org/"
pankso@41 12 WGET_URL="http://download.m0k.org/transmission/files/$TARBALL"
pankso@41 13
pankso@41 14 # Rules to configure and make the package.
pankso@41 15 compile_rules()
pankso@41 16 {
pankso@41 17 # Upstream did a funny tarball...
pankso@41 18 mkdir -p $PACKAGE-$VERSION
pankso@41 19 tar xzf $SOURCES_REPOSITORY/$TARBALL -C $PACKAGE-$VERSION
pankso@774 20
pankso@41 21 # For 0.92 (need openssl lib).
pankso@41 22 #bzip2 -d -c "$SOURCES_REPOSITORY/$TARBALL" | tar -xf -
pankso@774 23
pankso@41 24 cd $src
pankso@551 25 ./configure \
pankso@551 26 --prefix=/usr \
pankso@551 27 $CONFIGURE_ARGS
pankso@41 28 make
pankso@41 29 }
pankso@41 30
pankso@41 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@41 32 genpkg_rules()
pankso@41 33 {
pankso@774 34 mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES
erjo@539 35 cp -a $src/gtk/transmission $fs/usr/bin
pankso@551 36 # French locale.
pankso@551 37 cp -a $src/po/fr.gmo \
pankso@551 38 $fs/usr/share/locale/fr/LC_MESSAGES/transmission.mo
pankso@551 39 }
pankso@551 40
pankso@551 41 # Remove old packages name
pankso@551 42 post_install()
pankso@551 43 {
pankso@551 44 rm -f /usr/bin/transmission-gtk
pankso@41 45 }
pankso@343 46
pankso@343 47 # Fancy tarball...
pankso@343 48 clean_wok()
pankso@343 49 {
pankso@343 50 mv stuff /tmp/tmp-stuff
pankso@343 51 mv receipt /tmp/tmp-receipt
pankso@343 52 rm -rf *
pankso@343 53 mv /tmp/tmp-stuff stuff
pankso@343 54 mv /tmp/tmp-receipt receipt
pankso@343 55 }