# $Id: PKGBUILD 194463 2013-09-16 16:36:20Z tomegun $ # Maintainer : Tom Gundersen # Maintainer : Ionut Biru pkgbase=transmission pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt') pkgver=2.82 pkgrel=1 arch=('i686' 'x86_64' 'mips64el') url="http://www.transmissionbt.com/" license=('MIT') makedepends=('gtk3' 'intltool' 'curl' 'qt5-base' 'libevent') source=(http://mirrors.m0k.org/transmission/files/$pkgbase-$pkgver.tar.xz) md5sums=('a5ef870c0410b12d10449c2d36fa4661') build() { cd $pkgbase-$pkgver ./configure --prefix=/usr make pushd qt qmake qtr.pro make } package_transmission-cli() { pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)" depends=('curl' 'libevent' 'systemd') install=transmission-cli.install cd $pkgbase-$pkgver for dir in daemon cli web utils do make -C "$dir" DESTDIR="$pkgdir" install done install -D -m644 "$srcdir/transmission-$pkgver/daemon/transmission-daemon.service" "$pkgdir/usr/lib/systemd/system/transmission.service" install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING" } package_transmission-gtk() { pkgdesc="Fast, easy, and free BitTorrent client (GTK+ GUI)" depends=('curl' 'libevent' 'gtk3' 'desktop-file-utils' 'hicolor-icon-theme') optdepends=('notification-daemon: Desktop notification support' 'transmission-cli: daemon and web support') install=transmission-gtk.install cd $pkgbase-$pkgver make -C gtk DESTDIR="$pkgdir" install make -C po DESTDIR="$pkgdir" install install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-gtk/COPYING" } package_transmission-qt() { pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)" depends=('curl' 'qt5-base' 'libevent') optdepends=('transmission-cli: daemon and web support') install=transmission-qt.install cd $pkgbase-$pkgver make -C qt INSTALL_ROOT="$pkgdir"/usr install install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-qt/COPYING" install -D -m644 qt/icons/transmission.png "$pkgdir/usr/share/pixmaps/transmission-qt.png" install -D -m644 qt/transmission-qt.desktop "$pkgdir/usr/share/applications/transmission-qt.desktop" }