author | Ionuț Mircea Bîru
<ibiru@archlinux.org> 2011-05-17 15:28:51 UTC |
committer | Ionuț Mircea Bîru
<ibiru@archlinux.org> 2011-05-17 15:28:51 UTC |
parent | ce103ae36c35680b2b70b8f9ad5e3c00254f6d59 |
PKGBUILD | +6 | -6 |
transmission-qt.install | +11 | -0 |
transmissiond | +10 | -1 |
diff --git a/PKGBUILD b/PKGBUILD index 1fcdd63..379cec7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,18 +2,17 @@ pkgbase=transmission pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt') -pkgver=2.22 -pkgrel=3 +pkgver=2.30 +pkgrel=1 arch=('i686' 'x86_64') url="http://www.transmissionbt.com/" license=('MIT') -makedepends=('intltool' 'curl' 'libnotify' 'desktop-file-utils' 'qt' 'libevent' 'libcanberra' 'dbus-glib') +makedepends=('gtk2' 'intltool' 'curl' 'libnotify' 'desktop-file-utils' 'qt' 'libevent' 'libcanberra' 'dbus-glib') source=(http://mirrors.m0k.org/transmission/files/${pkgbase}-${pkgver}.tar.bz2 transmissiond transmissiond.conf) -md5sums=('6499986bf769276310b00bda1090090d' - '50b7c17300bc8b38f44fb6f681ba05d0' +md5sums=('d812539eb6e8547614ab7d0d5c6496a8' + '08875299e3fbb68fc546c1f350ac1f06' 'be39806c35b7544856fa4070b00fc960') - build() { cd "${srcdir}/${pkgbase}-${pkgver}" @@ -62,6 +61,7 @@ package_transmission-qt() { pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)" depends=('curl' 'qt' 'libevent') optdepends=('transmission-cli: daemon and web support') + install=transmission-qt.install cd "${srcdir}/${pkgbase}-${pkgver}" diff --git a/transmission-qt.install b/transmission-qt.install new file mode 100644 index 0000000..e111ef9 --- /dev/null +++ b/transmission-qt.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/transmissiond b/transmissiond index ff83bd3..1b4b4dc 100644 --- a/transmissiond +++ b/transmissiond @@ -31,7 +31,16 @@ case "$1" in while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done $0 start ;; + reload) + stat_busy "Reloading config" + [ ! -z "$PID" ] && kill -HUP $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + fi + ;; *) - echo "usage: $0 {start|stop|restart}" + echo "usage: $0 {start|stop|restart|reload}" esac exit 0