wok-next annotate transmission/receipt @ rev 20450

xcb-util* are obsolete -> xorg-xcb-util*
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 14:24:29 2018 +0200 (2018-02-28)
parents e70c0b9c5adf
children e6615350078d
rev   line source
pascal@20051 1 # SliTaz package receipt v2.
pankso@41 2
pankso@41 3 PACKAGE="transmission"
psychomaniak@19054 4 VERSION="2.92"
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@15002 8 LICENSE="GPL2"
pankso@11956 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@1739 10 WEB_SITE="http://www.transmissionbt.com/"
slaxemulator@15832 11 WGET_URL="https://transmission.cachefly.net/$TARBALL"
pankso@41 12
psychomaniak@17107 13 BUILD_DEPENDS="gtk+3-dev openssl-dev curl-dev curl intltool \
psychomaniak@17109 14 expat-dev gettext dbus-dev dbus-glib-dev libevent-dev wget tar"
pascal@20051 15 SPLIT="transmission-cli transmission-daemon transmission-web"
slaxemulator@10109 16
pankso@41 17 # Rules to configure and make the package.
pankso@41 18 compile_rules()
pankso@41 19 {
pascal@15836 20 touch third-party/miniupnp/VERSION
devl547@17661 21 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections \
devl547@17661 22 -Wl,--gc-sections"
pankso@551 23 ./configure \
pankso@551 24 --prefix=/usr \
pascal@18942 25 --enable-cli \
pankso@11956 26 --enable-lightweight \
pascal@18942 27 $CONFIGURE_ARGS &&
pankso@11956 28 make && make install &&
psychomaniak@17109 29 rm -rf $install/usr/share/applications $src/macosx
psychomaniak@17109 30 #For gcc v4.7+
psychomaniak@17109 31 #cd $src/qt && qmake qtr.pro
psychomaniak@17109 32 #make && make INSTALL_ROOT=$install install
pankso@41 33 }
pankso@41 34
pankso@41 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@41 36 genpkg_rules()
pankso@41 37 {
pascal@20051 38 case $PACKAGE in
pascal@20051 39 transmission)
pascal@20051 40 DEPENDS="gtk+3 libssl libcurl glib dbus dbus-glib \
pascal@20051 41 xorg-libXdamage libnotify libevent"
pascal@20051 42 TAGS="torrent"
pascal@20051 43 SUGGESTED="transmission-web transmission-cli transmission-daemon"
pascal@20051 44 mkdir -p $fs/usr/bin $fs/usr/share/applications
pascal@20051 45 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE}
pascal@20051 46 ;;
pascal@20051 47 transmission-cli)
pascal@20051 48 CAT="network|Transmission command line interface."
pascal@20051 49 DEPENDS="transmission libcurl libssl"
pascal@20051 50 mkdir -p $fs/usr/bin
pascal@20051 51 cp -a $install/usr/bin/transmission-cli $fs/usr/bin
pascal@20051 52 ;;
pascal@20051 53 transmission-daemon)
pascal@20051 54 CAT="network|Transmission daemon and remote tool."
pascal@20051 55 SUGGESTED="transmission-web transmission-cli"
pascal@20051 56 DEPENDS="libssl libcurl libevent"
pascal@20051 57 mkdir -p $fs/usr/bin \
pascal@20051 58 $fs/etc/init.d \
pascal@20051 59 $fs/var/transmission-daemon
pascal@20051 60 cp -a $install/usr/bin/transmission-daemon $fs/usr/bin
pascal@20051 61 cp -a $install/usr/bin/transmission-remote $fs/usr/bin
pascal@20051 62 cp $stuff/settings.json $fs/var/transmission-daemon
pascal@20051 63 cp $stuff/transmission-daemon $fs/etc/init.d
pascal@20051 64 ;;
pascal@20051 65 transmission-web)
pascal@20051 66 CAT="network|Transmission web interface."
pascal@20051 67 SUGGESTED="transmission-daemon"
pascal@20051 68 mkdir -p $fs/usr/share
pascal@20051 69 cp -a $install/usr/share/transmission $fs/usr/share
pascal@20051 70 rm $fs/usr/share/transmission/web/LICENSE
pascal@20051 71 ;;
pascal@20051 72 esac
pankso@551 73 }
pankso@551 74
pankso@551 75 # Remove old packages name
pascal@20051 76 post_install_transmission()
pankso@551 77 {
pascal@18730 78 rm -f "$1/usr/bin/transmission-gtk"
pascal@18730 79 rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop"
pankso@41 80 }
pascal@20051 81
pascal@20051 82 post_install_transmission_web()
pascal@20051 83 {
pascal@20051 84 # Info message
pascal@20051 85 echo "
pascal@20051 86 You must activate the web interface throught Transmission and then
pascal@20051 87 connect to: http://localhost:9091"
pascal@20051 88 echo ""
pascal@20051 89 }