wok-next view transmission/receipt @ rev 20604
More fix libtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 13:15:41 2018 +0300 (2018-04-19) |
parents | e6615350078d |
children | 0f501a0d06a0 |
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 WEB_SITE="http://www.transmissionbt.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://transmission.cachefly.net/$TARBALL"
14 BUILD_DEPENDS="gtk+3-dev openssl-dev curl-dev curl intltool \
15 expat-dev gettext dbus-dev dbus-glib-dev libevent-dev wget tar"
16 SPLIT="transmission-cli transmission-daemon transmission-web"
18 compile_rules() {
19 touch third-party/miniupnp/VERSION
20 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections -Wl,--gc-sections"
22 ./configure \
23 --enable-cli \
24 --enable-lightweight \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make && make install || return 1
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
34 install -Dm644 $stuff/settings.json $install/var/transmission-daemon/settings.json
35 install -Dm755 $stuff/transmission-daemon $install/etc/init.d/transmission-daemon
37 mv $install/usr/bin/transmission-gtk $install/usr/bin/transmission
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 transmission)
43 copy transmission
44 DEPENDS="gtk+3 openssl libcurl glib dbus dbus-glib \
45 xorg-libXdamage libnotify libevent"
46 TAGS="torrent"
47 SUGGESTED="transmission-web transmission-cli transmission-daemon"
48 ;;
49 transmission-cli)
50 copy transmission-cli
51 CAT="network|command line interface"
52 DEPENDS="transmission libcurl openssl"
53 ;;
54 transmission-daemon)
55 copy transmission-daemon transmission-remote settings.json
56 CAT="network|daemon and remote tool"
57 SUGGESTED="transmission-web transmission-cli"
58 DEPENDS="openssl libcurl libevent"
59 ;;
60 transmission-web)
61 copy share/transmission/
62 rm $fs/usr/share/transmission/web/LICENSE
63 CAT="network|web interface"
64 SUGGESTED="transmission-daemon"
65 ;;
66 esac
67 }
69 # Remove old packages name
70 post_install_transmission() {
71 rm -f "$1/usr/bin/transmission-gtk"
72 rm -f "$1/usr/share/applications/transmission-gtk.desktop"
73 }
75 post_install_transmission_web() {
76 # Info message
77 echo "
78 You must activate the web interface throught Transmission and then
79 connect to: http://localhost:9091"
80 echo ""
81 }