wok-stable annotate transmission/receipt @ rev 1640
Add vpnc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 25 10:50:48 2008 +0000 (2008-10-25) |
parents | 48b0cfe1b73c |
children | 1bdd61016f16 |
rev | line source |
---|---|
pankso@41 | 1 # SliTaz package receipt. |
pankso@41 | 2 |
pankso@41 | 3 PACKAGE="transmission" |
pascal@1254 | 4 VERSION="1.32" |
pankso@203 | 5 CATEGORY="network" |
pankso@41 | 6 SHORT_DESC="Light and easy to use BitTorrent client." |
pankso@41 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@1611 | 8 DEPENDS="gtk+ openssl curl libgio" |
pankso@774 | 9 BUILD_DEPENDS="gtk+-dev openssl-dev curl-dev" |
erjo@539 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1282 | 11 WEB_SITE="http://transmissionbt.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 { |
pascal@1137 | 44 rm -f $1/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 } |