[arch-commits] Commit in (8 files)
Ionut Biru
ibiru at archlinux.org
Sun May 23 22:21:58 UTC 2010
Date: Sunday, May 23, 2010 @ 18:21:57
Author: ibiru
Revision: 80919
split builds for transmission and adding transmission-qt support
Added:
transmission/
transmission/trunk/
transmission/trunk/PKGBUILD
transmission/trunk/qtr.desktop
transmission/trunk/transmission-cli.install
transmission/trunk/transmission-gtk.install
transmission/trunk/transmissiond
transmission/trunk/transmissiond.conf
--------------------------+
PKGBUILD | 73 +++++++++++++++++++++++++++++++++++++++++++++
qtr.desktop | 10 ++++++
transmission-cli.install | 9 +++++
transmission-gtk.install | 12 +++++++
transmissiond | 37 ++++++++++++++++++++++
transmissiond.conf | 2 +
6 files changed, 143 insertions(+)
Added: transmission/trunk/PKGBUILD
===================================================================
--- transmission/trunk/PKGBUILD (rev 0)
+++ transmission/trunk/PKGBUILD 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=transmission
+pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt')
+pkgver=1.93
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://www.transmissionbt.com/"
+license=('MIT')
+makedepends=('intltool' 'curl' 'libnotify' 'desktop-file-utils' 'qt' 'libevent')
+source=(http://mirrors.m0k.org/transmission/files/${pkgbase}-${pkgver}.tar.bz2
+ transmissiond transmissiond.conf qtr.desktop)
+md5sums=('f68358d03e46bec5704bbaa894990152'
+ '50b7c17300bc8b38f44fb6f681ba05d0'
+ '4170b71ad5d6c499a8a16c6e86b77cce'
+ '18912ee58b00938c177f64f6bdd6eed9')
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+
+ ./configure --prefix=/usr --disable-wx || return 1
+ make || return 1
+ pushd qt
+ qmake qtr.pro || return 1
+ make || return 1
+}
+package_transmission-cli() {
+ pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)"
+ depends=('curl' 'libevent')
+ backup=('etc/conf.d/transmissiond')
+ install=transmission-cli.install
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ for dir in daemon cli web
+ do
+ make -C "${dir}" DESTDIR="${pkgdir}" install || return 1
+ done
+
+ install -D -m755 "${srcdir}/transmissiond" "${pkgdir}/etc/rc.d/transmissiond" || return 1
+ install -D -m644 "${srcdir}/transmissiond.conf" "${pkgdir}/etc/conf.d/transmissiond" || return 1
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-cli/COPYING" || return 1
+
+}
+
+package_transmission-gtk() {
+ pkgdesc="Fast, easy, and free BitTorrent client (GTK+ GUI)"
+ depends=('curl' 'libevent' 'libnotify' 'desktop-file-utils' 'hicolor-icon-theme')
+ optdepends=('notification-daemon: Desktop notification support'
+ 'transmission-cli: daemon and web support')
+ install=transmission-gtk.install
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ make -C gtk DESTDIR="${pkgdir}" install || return 1
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-gtk/COPYING" || return 1
+}
+
+package_transmission-qt() {
+ pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)"
+ depends=('curl' 'qt')
+ optdepends=('transmission-cli: daemon and web support')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ make -C qt INSTALL_ROOT="${pkgdir}"/usr install || return 1
+
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-qt/COPYING" || return 1
+ install -D -m644 gtk/transmission.png "${pkgdir}/usr/share/pixmaps/transmission-qt.png" || return 1
+ install -D -m644 "${srcdir}"/qtr.desktop "${pkgdir}/usr/share/applications/qtr.desktop" || return 1
+}
Property changes on: transmission/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
+ Id
Added: transmission/trunk/qtr.desktop
===================================================================
--- transmission/trunk/qtr.desktop (rev 0)
+++ transmission/trunk/qtr.desktop 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qtransmission Bittorrent Client
+GenericName=BitTorrent Client
+Comment=Download and share files over BitTorrent
+Exec=qtr %F
+Icon=transmission-qt
+Terminal=false
+Type=Application
+MimeType=application/x-bittorrent;
+Categories=Network;FileTransfer;P2P;Qt;
Added: transmission/trunk/transmission-cli.install
===================================================================
--- transmission/trunk/transmission-cli.install (rev 0)
+++ transmission/trunk/transmission-cli.install 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,9 @@
+post_install() {
+ cat << _EOF
+
+ If you want to run the Transmission daemon at boot,
+ add transmissiond to the DAEMONS array in /etc/rc.conf.
+ You have to set the user in /etc/conf.d/transmissiond.
+
+_EOF
+}
Added: transmission/trunk/transmission-gtk.install
===================================================================
--- transmission/trunk/transmission-gtk.install (rev 0)
+++ transmission/trunk/transmission-gtk.install 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Added: transmission/trunk/transmissiond
===================================================================
--- transmission/trunk/transmissiond (rev 0)
+++ transmission/trunk/transmissiond 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/transmissiond
+
+PID=`pidof -o %PPID /usr/bin/transmission-daemon`
+case "$1" in
+ start)
+ stat_busy "Starting Transmission Daemon"
+ [ -z "$PID" ] && su -l -s /bin/sh -c "/usr/bin/transmission-daemon $TRANS_ARGS" $TRANS_USER
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon transmissiond
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Transmission Daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon transmissiond
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
Added: transmission/trunk/transmissiond.conf
===================================================================
--- transmission/trunk/transmissiond.conf (rev 0)
+++ transmission/trunk/transmissiond.conf 2010-05-23 22:21:57 UTC (rev 80919)
@@ -0,0 +1,2 @@
+TRANS_USER=""
+TRANS_ARGS=""
More information about the arch-commits
mailing list