wok-next annotate transmission/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 0f501a0d06a0 |
children | d5aab818505e |
rev | line source |
---|---|
pascal@20051 | 1 # SliTaz package receipt v2. |
pankso@41 | 2 |
pankso@41 | 3 PACKAGE="transmission" |
al@20610 | 4 VERSION="2.93" |
pankso@203 | 5 CATEGORY="network" |
al@20610 | 6 SHORT_DESC="A fast, easy, and free BitTorrent client" |
pankso@41 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20610 | 9 WEB_SITE="https://transmissionbt.com/" |
al@20604 | 10 |
pankso@11956 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@20610 | 12 WGET_URL="https://github.com/transmission/transmission-releases/raw/master/$TARBALL" |
al@20610 | 13 TARBALL_SHA256="8815920e0a4499bcdadbbe89a4115092dab42ce5199f71ff9a926cfd12b9b90b" |
pankso@41 | 14 |
al@21017 | 15 BUILD_DEPENDS="curl-dev libevent-dev intltool gtk3-dev" |
pascal@20051 | 16 SPLIT="transmission-cli transmission-daemon transmission-web" |
slaxemulator@10109 | 17 |
al@20610 | 18 COOKOPTS="skip-log-errors !pixmaps" |
al@20610 | 19 |
al@20604 | 20 compile_rules() { |
pankso@551 | 21 ./configure \ |
al@20610 | 22 --disable-static \ |
al@20610 | 23 --enable-nls \ |
al@20610 | 24 --enable-lightweight \ |
pascal@18942 | 25 --enable-cli \ |
al@20610 | 26 --enable-daemon \ |
al@20610 | 27 --with-gtk \ |
pascal@18942 | 28 $CONFIGURE_ARGS && |
al@20604 | 29 fix libtool && |
al@20610 | 30 make && |
al@20610 | 31 make install || return 1 |
al@20604 | 32 |
al@20604 | 33 install -Dm644 $stuff/settings.json $install/var/transmission-daemon/settings.json |
al@20604 | 34 install -Dm755 $stuff/transmission-daemon $install/etc/init.d/transmission-daemon |
pankso@41 | 35 } |
pankso@41 | 36 |
al@20604 | 37 genpkg_rules() { |
pascal@20051 | 38 case $PACKAGE in |
al@20604 | 39 transmission) |
al@20610 | 40 copy transmission-gtk @ico |
al@21017 | 41 DEPENDS="gdk-pixbuf glib gtk3 libcurl libevent openssl pango zlib" |
al@20604 | 42 TAGS="torrent" |
al@20604 | 43 SUGGESTED="transmission-web transmission-cli transmission-daemon" |
al@20604 | 44 ;; |
al@20604 | 45 transmission-cli) |
al@20610 | 46 copy transmission-cli transmission-create transmission-edit \ |
al@20610 | 47 transmission-show |
al@20604 | 48 CAT="network|command line interface" |
al@20610 | 49 DEPENDS="libcurl libevent openssl zlib" |
al@20604 | 50 ;; |
al@20604 | 51 transmission-daemon) |
al@20604 | 52 copy transmission-daemon transmission-remote settings.json |
al@20604 | 53 CAT="network|daemon and remote tool" |
al@20604 | 54 SUGGESTED="transmission-web transmission-cli" |
al@20610 | 55 DEPENDS="libcurl libevent openssl zlib" |
al@20604 | 56 ;; |
al@20604 | 57 transmission-web) |
al@20604 | 58 copy share/transmission/ |
al@20604 | 59 CAT="network|web interface" |
al@20604 | 60 SUGGESTED="transmission-daemon" |
al@20604 | 61 ;; |
pascal@20051 | 62 esac |
pankso@551 | 63 } |
pankso@551 | 64 |
al@20604 | 65 post_install_transmission_web() { |
pascal@20051 | 66 # Info message |
pascal@20051 | 67 echo " |
pascal@20051 | 68 You must activate the web interface throught Transmission and then |
pascal@20051 | 69 connect to: http://localhost:9091" |
pascal@20051 | 70 echo "" |
pascal@20051 | 71 } |