wok-next view transmission/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | e70c0b9c5adf |
children | e6615350078d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="transmission"
4 VERSION="2.92"
5 CATEGORY="network"
6 SHORT_DESC="Light and easy to use BitTorrent client."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.transmissionbt.com/"
11 WGET_URL="https://transmission.cachefly.net/$TARBALL"
13 BUILD_DEPENDS="gtk+3-dev openssl-dev curl-dev curl intltool \
14 expat-dev gettext dbus-dev dbus-glib-dev libevent-dev wget tar"
15 SPLIT="transmission-cli transmission-daemon transmission-web"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 touch third-party/miniupnp/VERSION
21 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections \
22 -Wl,--gc-sections"
23 ./configure \
24 --prefix=/usr \
25 --enable-cli \
26 --enable-lightweight \
27 $CONFIGURE_ARGS &&
28 make && make install &&
29 rm -rf $install/usr/share/applications $src/macosx
30 #For gcc v4.7+
31 #cd $src/qt && qmake qtr.pro
32 #make && make INSTALL_ROOT=$install install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 case $PACKAGE in
39 transmission)
40 DEPENDS="gtk+3 libssl libcurl glib dbus dbus-glib \
41 xorg-libXdamage libnotify libevent"
42 TAGS="torrent"
43 SUGGESTED="transmission-web transmission-cli transmission-daemon"
44 mkdir -p $fs/usr/bin $fs/usr/share/applications
45 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE}
46 ;;
47 transmission-cli)
48 CAT="network|Transmission command line interface."
49 DEPENDS="transmission libcurl libssl"
50 mkdir -p $fs/usr/bin
51 cp -a $install/usr/bin/transmission-cli $fs/usr/bin
52 ;;
53 transmission-daemon)
54 CAT="network|Transmission daemon and remote tool."
55 SUGGESTED="transmission-web transmission-cli"
56 DEPENDS="libssl libcurl libevent"
57 mkdir -p $fs/usr/bin \
58 $fs/etc/init.d \
59 $fs/var/transmission-daemon
60 cp -a $install/usr/bin/transmission-daemon $fs/usr/bin
61 cp -a $install/usr/bin/transmission-remote $fs/usr/bin
62 cp $stuff/settings.json $fs/var/transmission-daemon
63 cp $stuff/transmission-daemon $fs/etc/init.d
64 ;;
65 transmission-web)
66 CAT="network|Transmission web interface."
67 SUGGESTED="transmission-daemon"
68 mkdir -p $fs/usr/share
69 cp -a $install/usr/share/transmission $fs/usr/share
70 rm $fs/usr/share/transmission/web/LICENSE
71 ;;
72 esac
73 }
75 # Remove old packages name
76 post_install_transmission()
77 {
78 rm -f "$1/usr/bin/transmission-gtk"
79 rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop"
80 }
82 post_install_transmission_web()
83 {
84 # Info message
85 echo "
86 You must activate the web interface throught Transmission and then
87 connect to: http://localhost:9091"
88 echo ""
89 }