wok-next annotate transmission/receipt @ rev 569
Up: libxml2 (2.6.32)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 14 15:06:52 2008 +0200 (2008-04-14) |
parents | 47e6882f05da |
children | 4f8dd16a82a2 |
rev | line source |
---|---|
pankso@41 | 1 # SliTaz package receipt. |
pankso@41 | 2 |
pankso@41 | 3 PACKAGE="transmission" |
erjo@539 | 4 VERSION="1.11" |
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@41 | 8 DEPENDS="gtk+" |
erjo@539 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@41 | 10 WEB_SITE="http://transmission.m0k.org/" |
pankso@41 | 11 WGET_URL="http://download.m0k.org/transmission/files/$TARBALL" |
pankso@41 | 12 |
pankso@41 | 13 # Rules to configure and make the package. |
pankso@41 | 14 compile_rules() |
pankso@41 | 15 { |
pankso@41 | 16 # Upstream did a funny tarball... |
pankso@41 | 17 mkdir -p $PACKAGE-$VERSION |
pankso@41 | 18 tar xzf $SOURCES_REPOSITORY/$TARBALL -C $PACKAGE-$VERSION |
pankso@41 | 19 |
pankso@41 | 20 # For 0.92 (need openssl lib). |
pankso@41 | 21 #bzip2 -d -c "$SOURCES_REPOSITORY/$TARBALL" | tar -xf - |
pankso@41 | 22 |
pankso@41 | 23 cd $src |
pankso@551 | 24 ./configure \ |
pankso@551 | 25 --prefix=/usr \ |
pankso@551 | 26 $CONFIGURE_ARGS |
pankso@41 | 27 make |
pankso@41 | 28 } |
pankso@41 | 29 |
pankso@41 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@41 | 31 genpkg_rules() |
pankso@41 | 32 { |
pankso@551 | 33 mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES |
erjo@539 | 34 cp -a $src/gtk/transmission $fs/usr/bin |
pankso@551 | 35 # French locale. |
pankso@551 | 36 cp -a $src/po/fr.gmo \ |
pankso@551 | 37 $fs/usr/share/locale/fr/LC_MESSAGES/transmission.mo |
pankso@551 | 38 } |
pankso@551 | 39 |
pankso@551 | 40 # Remove old packages name |
pankso@551 | 41 post_install() |
pankso@551 | 42 { |
pankso@551 | 43 rm -f /usr/bin/transmission-gtk |
pankso@41 | 44 } |
pankso@343 | 45 |
pankso@343 | 46 # Fancy tarball... |
pankso@343 | 47 clean_wok() |
pankso@343 | 48 { |
pankso@343 | 49 mv stuff /tmp/tmp-stuff |
pankso@343 | 50 mv receipt /tmp/tmp-receipt |
pankso@343 | 51 rm -rf * |
pankso@343 | 52 mv /tmp/tmp-stuff stuff |
pankso@343 | 53 mv /tmp/tmp-receipt receipt |
pankso@343 | 54 } |