wok view transmission/receipt @ rev 1769

Add get-upx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 26 11:51:02 2008 +0000 (2008-11-26)
parents f1d973413286
children 4a0fe17bcf52
line source
1 # SliTaz package receipt.
3 PACKAGE="transmission"
4 VERSION="1.40"
5 CATEGORY="network"
6 SHORT_DESC="Light and easy to use BitTorrent client."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ openssl curl libgio"
9 BUILD_DEPENDS="gtk+-dev openssl-dev curl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.transmissionbt.com/"
12 WGET_URL="http://download.m0k.org/transmission/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # Upstream did a funny tarball...
18 mkdir -p $PACKAGE-$VERSION
19 tar xzf $SOURCES_REPOSITORY/$TARBALL -C $PACKAGE-$VERSION
21 # For 0.92 (need openssl lib).
22 #bzip2 -d -c "$SOURCES_REPOSITORY/$TARBALL" | tar -xf -
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 $CONFIGURE_ARGS
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES
35 cp -a $src/gtk/transmission $fs/usr/bin
36 # French locale.
37 cp -a $src/po/fr.gmo \
38 $fs/usr/share/locale/fr/LC_MESSAGES/transmission.mo
39 }
41 # Remove old packages name
42 post_install()
43 {
44 rm -f $1/usr/bin/transmission-gtk
45 }
47 # Fancy tarball...
48 clean_wok()
49 {
50 mv stuff /tmp/tmp-stuff
51 mv receipt /tmp/tmp-receipt
52 rm -rf *
53 mv /tmp/tmp-stuff stuff
54 mv /tmp/tmp-receipt receipt
55 }